ref #7998 Add termType to vocabulary selection dialog
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / descriptiveDataSet / character / CharacterEditor.java
index 840497b09c146adab8c5c584a20912a2e5c1a56a..57fa646ff0bbc517d5bddf64f3f2fe906bc2dae6 100644 (file)
@@ -58,6 +58,7 @@ import eu.etaxonomy.cdm.api.service.IFeatureNodeService;
 import eu.etaxonomy.cdm.api.service.IFeatureTreeService;
 import eu.etaxonomy.cdm.api.service.ITermService;
 import eu.etaxonomy.cdm.model.common.Representation;
+import eu.etaxonomy.cdm.model.common.TermType;
 import eu.etaxonomy.cdm.model.common.TermVocabulary;
 import eu.etaxonomy.cdm.model.description.Character;
 import eu.etaxonomy.cdm.model.description.FeatureNode;
@@ -147,7 +148,7 @@ public class CharacterEditor implements IFeatureTreeEditor,IConversationEnabled,
 
             @Override
             public void widgetSelected(SelectionEvent e) {
-                vocabulary = TermVocabularySelectionDialog.select("Select vocabulary for characters", btnChooseVoc.getShell(), null);
+                vocabulary = TermVocabularySelectionDialog.select("Select vocabulary for characters", btnChooseVoc.getShell(), vocabulary, TermType.Feature);
                 if(vocabulary!=null){
                     txtVocabulary.setText(vocabulary.getLabel());
                 }