Revision 78c76c38
Added by Patrick Plitzner over 4 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/feature/OnlyApplicableIfCollectionElement.java | ||
---|---|---|
11 | 11 |
import org.eclipse.swt.events.SelectionListener; |
12 | 12 |
import org.eclipse.swt.graphics.Color; |
13 | 13 |
|
14 |
import eu.etaxonomy.cdm.model.description.Feature; |
|
15 | 14 |
import eu.etaxonomy.cdm.model.description.State; |
16 | 15 |
import eu.etaxonomy.cdm.model.term.TermNode; |
17 | 16 |
import eu.etaxonomy.cdm.model.term.TermType; |
... | ... | |
55 | 54 |
if(eventSource==comboState && comboState.getSelection()!=null){ |
56 | 55 |
if(getParentElement() instanceof OnlyApplicableIfEntityCollectionSection){ |
57 | 56 |
OnlyApplicableIfEntityCollectionSection parentElement = (OnlyApplicableIfEntityCollectionSection) getParentElement(); |
58 |
TermNode<Feature> node = parentElement.getEntity();
|
|
57 |
TermNode node = parentElement.getEntity(); |
|
59 | 58 |
node.removeApplicableState(entity); |
60 | 59 |
State state = comboState.getSelection(); |
61 | 60 |
node.addApplicableState(state); |
Also available in: Unified diff
ref #8238 Remove too specific generics from TermTree and TermNode