Project

General

Profile

« Previous | Next » 

Revision cb89f4f7

Added by Andreas Müller over 4 years ago

ref #6794 adapt TaxEditor to new term structure (rename FeatureNode and FeatureTree)

View differences:

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.term.TermType;
15
import eu.etaxonomy.cdm.model.term.FeatureNode;
14
import eu.etaxonomy.cdm.model.description.Feature;
16 15
import eu.etaxonomy.cdm.model.description.State;
16
import eu.etaxonomy.cdm.model.term.TermNode;
17
import eu.etaxonomy.cdm.model.term.TermType;
17 18
import eu.etaxonomy.taxeditor.ui.combo.TermComboElement;
18 19
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection;
19 20
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
......
54 55
        if(eventSource==comboState && comboState.getSelection()!=null){
55 56
            if(getParentElement() instanceof OnlyApplicableIfEntityCollectionSection){
56 57
                OnlyApplicableIfEntityCollectionSection parentElement = (OnlyApplicableIfEntityCollectionSection) getParentElement();
57
                FeatureNode node = parentElement.getEntity();
58
                TermNode<Feature> node = parentElement.getEntity();
58 59
                node.removeApplicableState(entity);
59 60
                State state = comboState.getSelection();
60 61
                node.addApplicableState(state);

Also available in: Unified diff