Changed calls to retrieve term vocabularies to preferred term mechanism where applicable.
[taxeditor.git] / taxeditor-editor / src / main / java / eu / etaxonomy / taxeditor / propertysheet / tabbed / NamePropertySection.java
index 5fed3ff4a803992473f57a25f4c851913d6e4945..b74d93de80094ffa48649186ddbc325c379ebb54 100644 (file)
@@ -10,6 +10,8 @@
 
 package eu.etaxonomy.taxeditor.propertysheet.tabbed;
 
+import java.util.Properties;
+
 import org.apache.log4j.Logger;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.custom.CCombo;
@@ -26,6 +28,7 @@ import eu.etaxonomy.cdm.model.name.NomenclaturalStatusType;
 import eu.etaxonomy.cdm.model.name.Rank;
 import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
 import eu.etaxonomy.taxeditor.store.CdmStore;
+import eu.etaxonomy.taxeditor.store.VocabularyStore;
 
 /**
  * @author n.hoffmann
@@ -117,7 +120,7 @@ public class NamePropertySection extends AbstractNamePropertySection {
                nomenclaturalStatusCombo = getWidgetFactory().createCCombo(composite);
                nomenclaturalStatusCombo.setLayoutData(comboLayout);
                
-               for(NomenclaturalStatusType nomenclaturalStatusType : CdmStore.getNomenclaturalStatusTypes()){
+               for(NomenclaturalStatusType nomenclaturalStatusType : PreferencesUtil.getPreferredNomenclaturalStatusTypes()){
                        nomenclaturalStatusCombo.add(nomenclaturalStatusType.getLabel(CdmStore.getDefaultLanguage()));
                }