ref #8146 Add character voc selection in character editor
authorPatrick Plitzner <p.plitzner@bgbm.org>
Thu, 28 Feb 2019 10:02:47 +0000 (11:02 +0100)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Thu, 28 Feb 2019 11:45:07 +0000 (12:45 +0100)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/character/CharacterEditor.java

index 62d1ef2a5aee569fc83665ce4a61f7abc43c2d51..888d988d6cfcca7a427dccd7115e7e4e99cbd586 100644 (file)
@@ -157,7 +157,7 @@ public class CharacterEditor implements IFeatureTreeEditor,IConversationEnabled,
                 if(vocabulary!=null){
                     vocabulariesToBeFiltered.add(vocabulary);
                 }
-                vocabulary = TermVocabularySelectionDialog.select("Select vocabulary for characters", btnChooseVoc.getShell(), vocabulariesToBeFiltered, TermType.Feature);
+                vocabulary = TermVocabularySelectionDialog.select("Select vocabulary for characters", btnChooseVoc.getShell(), vocabulariesToBeFiltered, TermType.Character);
                 if(vocabulary!=null){
                     txtVocabulary.setText(vocabulary.getLabel());
                 }
@@ -300,8 +300,8 @@ public class CharacterEditor implements IFeatureTreeEditor,IConversationEnabled,
             Iterator<FeatureNode> propertiesIterator = propertyTreeSelection.iterator();
             while(propertiesIterator.hasNext()){
                 FeatureNode propertyNode = propertiesIterator.next();
-                Representation structureRepresentation = structureNode.getFeature().getRepresentation(PreferencesUtil.getGlobalLanguage());
-                Representation propertyRepresentation = propertyNode.getFeature().getRepresentation(PreferencesUtil.getGlobalLanguage());
+                Representation structureRepresentation = structureNode.getTerm().getRepresentation(PreferencesUtil.getGlobalLanguage());
+                Representation propertyRepresentation = propertyNode.getTerm().getRepresentation(PreferencesUtil.getGlobalLanguage());
                 String label = null;
                 String abbrevLabel = null;
                 if(structureRepresentation.getLabel()!=null && propertyRepresentation.getLabel()!=null){