Project

General

Profile

« Previous | Next » 

Revision 4832aaf7

Added by Patrick Plitzner about 5 years ago

ref #8146 Add character voc selection in character editor

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/character/CharacterEditor.java
157 157
                if(vocabulary!=null){
158 158
                    vocabulariesToBeFiltered.add(vocabulary);
159 159
                }
160
                vocabulary = TermVocabularySelectionDialog.select("Select vocabulary for characters", btnChooseVoc.getShell(), vocabulariesToBeFiltered, TermType.Feature);
160
                vocabulary = TermVocabularySelectionDialog.select("Select vocabulary for characters", btnChooseVoc.getShell(), vocabulariesToBeFiltered, TermType.Character);
161 161
                if(vocabulary!=null){
162 162
                    txtVocabulary.setText(vocabulary.getLabel());
163 163
                }
......
300 300
            Iterator<FeatureNode> propertiesIterator = propertyTreeSelection.iterator();
301 301
            while(propertiesIterator.hasNext()){
302 302
                FeatureNode propertyNode = propertiesIterator.next();
303
                Representation structureRepresentation = structureNode.getFeature().getRepresentation(PreferencesUtil.getGlobalLanguage());
304
                Representation propertyRepresentation = propertyNode.getFeature().getRepresentation(PreferencesUtil.getGlobalLanguage());
303
                Representation structureRepresentation = structureNode.getTerm().getRepresentation(PreferencesUtil.getGlobalLanguage());
304
                Representation propertyRepresentation = propertyNode.getTerm().getRepresentation(PreferencesUtil.getGlobalLanguage());
305 305
                String label = null;
306 306
                String abbrevLabel = null;
307 307
                if(structureRepresentation.getLabel()!=null && propertyRepresentation.getLabel()!=null){

Also available in: Unified diff