Changed calls to retrieve term vocabularies to preferred term mechanism where applicable.
[taxeditor.git] / taxeditor-editor / src / main / java / eu / etaxonomy / taxeditor / propertysheet / namerelations / wizard / ChooseRelationWizardPage.java
index f5ae2891a302d8114cb4dbe312bc2fd89aac5b2e..844fb2cc745c5c35c4d78bcaa57c25c50864372e 100644 (file)
@@ -37,7 +37,8 @@ import eu.etaxonomy.taxeditor.editor.labels.LabelImageProvider;
 import eu.etaxonomy.taxeditor.editor.name.NameSelectComposite;\r
 import eu.etaxonomy.taxeditor.editor.reference.ReferenceSelectComposite;\r
 import eu.etaxonomy.taxeditor.model.NameUtil;\r
-import eu.etaxonomy.taxeditor.store.CdmStore;\r
+import eu.etaxonomy.taxeditor.preference.PreferencesUtil;\r
+import eu.etaxonomy.taxeditor.store.VocabularyStore;\r
 \r
 /**\r
  * An all-in-one relation wizard page where the user chooses a related name, a\r
@@ -132,7 +133,7 @@ public class ChooseRelationWizardPage extends WizardPage {
                typeCombo = new Combo(container, SWT.BORDER);\r
                typeCombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));\r
                for (NameRelationshipType relationType : \r
-                               CdmStore.getDefault().getNameRelationshipTypes()) {\r
+                               PreferencesUtil.getPreferredNameRelationshipTypes()) {\r
                        \r
                        relationTypes.add(relationType);\r
                        String label = labelProvider.getNameRelationTypeLabel(relationType);\r