diff options
Diffstat (limited to 'eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide')
2 files changed, 4 insertions, 3 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/ConfigurationSelector.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/ConfigurationSelector.java index 9d7ade6..b4926b0 100644 --- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/ConfigurationSelector.java +++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/ConfigurationSelector.java @@ -94,6 +94,7 @@ import org.eclipse.swt.widgets.Text; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Locale; import java.util.Set; @@ -870,7 +871,7 @@ public class ConfigurationSelector extends Composite { super(parent, LanguageQualifier.NAME); mLanguage = new Combo(this, SWT.DROP_DOWN); - Set<String> codes = LocaleManager.getLanguageCodes(); + List<String> codes = LocaleManager.getLanguageCodes(); String[] items = codes.toArray(new String[codes.size()]); Arrays.sort(items); mLanguage.setItems(items); diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newxmlfile/AddTranslationDialog.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newxmlfile/AddTranslationDialog.java index fcb3139..0301b80 100644 --- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newxmlfile/AddTranslationDialog.java +++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newxmlfile/AddTranslationDialog.java @@ -275,7 +275,7 @@ public class AddTranslationDialog extends Dialog implements ControlListener, Sel /** Populate the languages dropdown */ private void fillLanguages() { - Set<String> languageCodes = LocaleManager.getLanguageCodes(); + List<String> languageCodes = LocaleManager.getLanguageCodes(); List<String> labels = new ArrayList<String>(); for (String code : languageCodes) { labels.add(code + ": " + LocaleManager.getLanguageName(code)); //$NON-NLS-1$ @@ -291,7 +291,7 @@ public class AddTranslationDialog extends Dialog implements ControlListener, Sel // TODO: When you switch languages, offer some "default" usable options. For example, // when you choose English, offer the countries that use English, and so on. Unfortunately // we don't have good data about this, we'd just need to hardcode a few common cases. - Set<String> regionCodes = LocaleManager.getRegionCodes(); + List<String> regionCodes = LocaleManager.getRegionCodes(); List<String> labels = new ArrayList<String>(); for (String code : regionCodes) { labels.add(code + ": " + LocaleManager.getRegionName(code)); //$NON-NLS-1$ |