Changed calls to retrieve term vocabularies to preferred term mechanism where applicable.
[taxeditor.git] / taxeditor-editor / src / main / java / eu / etaxonomy / taxeditor / editor / labels / DefaultLabelStrategy.java
index e572aaecfe5aa41e716cb8370e36e081ce712f1d..c347d6499b78d747a919b20a45bbcc5439009733 100644 (file)
@@ -10,7 +10,7 @@ import org.eclipse.swt.graphics.Image;
 import eu.etaxonomy.cdm.model.name.NameRelationship;\r
 import eu.etaxonomy.cdm.model.name.NameRelationshipType;\r
 import eu.etaxonomy.taxeditor.model.ImageResources;\r
-import eu.etaxonomy.taxeditor.store.CdmStore;\r
+import eu.etaxonomy.taxeditor.store.VocabularyStore;\r
 \r
 /**\r
  * @author p.ciardelli\r
@@ -23,7 +23,7 @@ public class DefaultLabelStrategy implements ILabelImageStrategy {
         */\r
        public String getNameRelationTypeLabel(NameRelationshipType type) {\r
                SortedSet<NameRelationshipType> vocab = \r
-                       CdmStore.getDefault().getNameRelationshipTypes();\r
+                       VocabularyStore.getNameRelationshipTypes();\r
        \r
                for (NameRelationshipType type1 : vocab) {\r
                        if (type1.equals(type)) {\r
@@ -39,7 +39,7 @@ public class DefaultLabelStrategy implements ILabelImageStrategy {
        public String getNameRelationTypeInverseLabel(NameRelationshipType type) {\r
                \r
                SortedSet<NameRelationshipType> vocab = \r
-               CdmStore.getDefault().getNameRelationshipTypes();\r
+                       VocabularyStore.getNameRelationshipTypes();\r
 \r
                for (NameRelationshipType type1 : vocab) {\r
                        if (type1.equals(type)) {\r