Changed calls to retrieve term vocabularies to preferred term mechanism where applicable.
[taxeditor.git] / taxeditor-editor / src / main / java / eu / etaxonomy / taxeditor / editor / description / LanguageDialog.java
index 6c7328ee38dc52d982f2dce4713a6da879ec70f0..6e2513e482af6b865c6ba1b00454276777cdfa9a 100644 (file)
@@ -31,8 +31,7 @@ import org.eclipse.swt.widgets.Shell;
 \r
 import eu.etaxonomy.cdm.model.common.Language;\r
 import eu.etaxonomy.taxeditor.editor.EditorUtil;\r
-import eu.etaxonomy.taxeditor.model.LanguageUtil;\r
-import eu.etaxonomy.taxeditor.store.CdmStore;\r
+import eu.etaxonomy.taxeditor.store.VocabularyStore;\r
 \r
 /**\r
  * @author p.ciardelli\r
@@ -140,9 +139,9 @@ public class LanguageDialog extends InputDialog {
                languages = new ArrayList<Language>();\r
                int i = 0;              \r
                int index = 0;\r
-               for (Language language : CdmStore.getLanguages()) {\r
+               for (Language language : VocabularyStore.getLanguages()) {\r
                                                \r
-                       String description = LanguageUtil.getDescription(language); \r
+                       String description = language.getDescription(); \r
                        if (description == null) {\r
                                logger.warn("No description for " + language + " - not added to language menu");\r
                                continue;\r