aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2015-01-27 10:34:59 -0800
committerTor Norbye <tnorbye@google.com>2015-01-27 10:35:43 -0800
commitc70f21c9c36be5352e5c10ae9cc1eb710c184436 (patch)
tree21ebc7aa343e721ea30e925bee2b069b626549ec /eclipse
parent92eb4b169c383a60d87215d9dd83ff9a07a13961 (diff)
downloadsdk-c70f21c9c36be5352e5c10ae9cc1eb710c184436.zip
sdk-c70f21c9c36be5352e5c10ae9cc1eb710c184436.tar.gz
sdk-c70f21c9c36be5352e5c10ae9cc1eb710c184436.tar.bz2
Track LocaleManager API changes
Change-Id: Ibc5a6e7b0681848240376b165efa2cf49f0beb37
Diffstat (limited to 'eclipse')
-rw-r--r--eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/ConfigurationSelector.java3
-rw-r--r--eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newxmlfile/AddTranslationDialog.java4
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$