diff options
author | Tor Norbye <tnorbye@google.com> | 2011-03-15 12:05:36 -0700 |
---|---|---|
committer | Android Code Review <code-review@android.com> | 2011-03-15 12:05:36 -0700 |
commit | d251dea0b8771677e352c04fee12be778b5bda2c (patch) | |
tree | b66e4c6add2a78f89b2341f630199df95621207d | |
parent | 09ab25051be6cd4851baaf0d6e72718346dc6324 (diff) | |
parent | bd43cf93ac2b18c7dd738087120fa281221da644 (diff) | |
download | sdk-d251dea0b8771677e352c04fee12be778b5bda2c.zip sdk-d251dea0b8771677e352c04fee12be778b5bda2c.tar.gz sdk-d251dea0b8771677e352c04fee12be778b5bda2c.tar.bz2 |
Merge "ConcurrentModificationException in AbstractPropertiesFieldsPart"
-rwxr-xr-x | eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/export/AbstractPropertiesFieldsPart.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/export/AbstractPropertiesFieldsPart.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/export/AbstractPropertiesFieldsPart.java index 06169d2..0d72614 100755 --- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/export/AbstractPropertiesFieldsPart.java +++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/export/AbstractPropertiesFieldsPart.java @@ -34,6 +34,7 @@ import org.eclipse.ui.forms.widgets.Section; import java.util.HashMap; import java.util.HashSet; +import java.util.Iterator; /** * Section part for editing fields of a properties file in an Export editor. @@ -302,13 +303,15 @@ abstract class AbstractPropertiesFieldsPart extends ManifestSectionPart { } // Clear the text of any keyword we didn't find in the document - for (String key : allKeywords) { + Iterator<String> iterator = allKeywords.iterator(); + while (iterator.hasNext()) { + String key = iterator.next(); Control field = mNameToField.get(key); if (field != null) { try { mInternalTextUpdate = true; setFieldText(field, ""); - allKeywords.remove(key); + iterator.remove(); } finally { mInternalTextUpdate = false; } |