Revision 1c59050a
Added by Patrick Plitzner over 5 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/DescriptiveDataSetEditor.java | ||
---|---|---|
58 | 58 |
import eu.etaxonomy.cdm.api.service.ITaxonNodeService; |
59 | 59 |
import eu.etaxonomy.cdm.api.service.ITermService; |
60 | 60 |
import eu.etaxonomy.cdm.model.common.DefinedTermBase; |
61 |
import eu.etaxonomy.cdm.model.common.TermType; |
|
61 | 62 |
import eu.etaxonomy.cdm.model.description.DescriptiveDataSet; |
62 | 63 |
import eu.etaxonomy.cdm.model.description.FeatureTree; |
63 | 64 |
import eu.etaxonomy.cdm.model.location.NamedArea; |
... | ... | |
165 | 166 |
} |
166 | 167 |
}); |
167 | 168 |
|
168 |
composite.getFeatureTreeEditorComposite().init("Character Tree", null, null, e->selectionService.setSelection(e.getSelection()), this, null); |
|
169 |
composite.getFeatureTreeEditorComposite().init("Character Tree", |
|
170 |
TermType.Character, |
|
171 |
null, |
|
172 |
null, |
|
173 |
e->selectionService.setSelection(e.getSelection()), |
|
174 |
this, |
|
175 |
null); |
|
169 | 176 |
|
170 | 177 |
//add drag'n'drop support |
171 | 178 |
Transfer[] transfers = new Transfer[] {LocalSelectionTransfer.getTransfer()}; |
Also available in: Unified diff
ref #8146 Restrict tree selection in descriptive data set editor