#5335 Use new getLanguageByLabel methof in term service
authorCherian Mathew <c.mathew@bgbm.org>
Mon, 19 Oct 2015 13:33:50 +0000 (15:33 +0200)
committerCherian Mathew <c.mathew@bgbm.org>
Mon, 19 Oct 2015 13:33:50 +0000 (15:33 +0200)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/dataimport/transientServices/TransientTermService.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/LanguageRepresentationPreferencePage.java

index cf0039216c2f27e0de3786cb988777a76ecfe02c..2264aa95446629ebd75e754f2726167b9338ecf9 100644 (file)
@@ -929,4 +929,12 @@ public class TransientTermService implements ITermService {
         return defaultService.loadWithUpdate(arg0);
     }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Language getLanguageByLabel(String arg0) {
+        return defaultService.getLanguageByLabel(arg0);
+    }
+
 }
index 901a5b91f01cc02d650e8755f00086126abc6102..d15037da2018708b498b91c25109a4e8d8ded848 100644 (file)
@@ -104,7 +104,7 @@ public class LanguageRepresentationPreferencePage extends PreferencePage impleme
                        @Override
                        public void widgetSelected(SelectionEvent e) {
                                int selectionIndex = combo_globalLanguage.getSelectionIndex();
-                               globalLanguage = Language.getLanguageByLabel(combo_globalLanguage.getItem(selectionIndex));
+                               globalLanguage = CdmStore.getCurrentApplicationConfiguration().getTermService().getLanguageByLabel(combo_globalLanguage.getItem(selectionIndex));
                        }
                });
        }