Project

General

Profile

« Previous | Next » 

Revision a55062d3

Added by Katja Luther over 2 years ago

ref #9861: adapt editor to changes in termnodeDto-featurestateDto

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/CdmFormFactory.java
130 130
import eu.etaxonomy.cdm.model.term.TermTree;
131 131
import eu.etaxonomy.cdm.model.term.TermType;
132 132
import eu.etaxonomy.cdm.model.term.TermVocabulary;
133
import eu.etaxonomy.cdm.persistence.dto.FeatureStateDto;
133 134
import eu.etaxonomy.cdm.persistence.dto.TermDto;
134 135
import eu.etaxonomy.cdm.persistence.dto.TermVocabularyDto;
135 136
import eu.etaxonomy.cdm.strategy.parser.ParserProblem;
......
215 216
import eu.etaxonomy.taxeditor.ui.section.feature.FeatureDistributionDetailElement;
216 217
import eu.etaxonomy.taxeditor.ui.section.feature.FeatureDistributionDetailSection;
217 218
import eu.etaxonomy.taxeditor.ui.section.feature.InapplicableIfCollectionElement;
219
import eu.etaxonomy.taxeditor.ui.section.feature.InapplicableIfCollectionElementForDto;
218 220
import eu.etaxonomy.taxeditor.ui.section.feature.InapplicableIfEntityCollectionSection;
219 221
import eu.etaxonomy.taxeditor.ui.section.feature.InapplicableIfEntityCollectionSectionForNode;
220 222
import eu.etaxonomy.taxeditor.ui.section.feature.OnlyApplicableIfCollectionElement;
223
import eu.etaxonomy.taxeditor.ui.section.feature.OnlyApplicableIfCollectionElementForDto;
221 224
import eu.etaxonomy.taxeditor.ui.section.feature.OnlyApplicableIfEntityCollectionSection;
222 225
import eu.etaxonomy.taxeditor.ui.section.feature.OnlyApplicableIfEntityCollectionSectionForNode;
223 226
import eu.etaxonomy.taxeditor.ui.section.feature.TermNodeDetailElement;
......
3168 3171
            element = new InapplicableIfCollectionElement(this, parentElement, (FeatureState) entity, removeListener, backgroundColor, style);
3169 3172
        } else if (entity instanceof FeatureState && parentElement instanceof OnlyApplicableIfEntityCollectionSectionForNode) {
3170 3173
            element = new OnlyApplicableIfCollectionElement(this, parentElement, (FeatureState) entity, removeListener, backgroundColor, style);
3171
        }
3174
        } else if (entity instanceof FeatureStateDto && parentElement instanceof InapplicableIfEntityCollectionSection) {
3175
        	element = new InapplicableIfCollectionElementForDto(this, parentElement, (FeatureStateDto) entity, removeListener, backgroundColor, style);
3176
	    } else if (entity instanceof FeatureStateDto && parentElement instanceof OnlyApplicableIfEntityCollectionSection) {
3177
	        element = new OnlyApplicableIfCollectionElementForDto(this, parentElement, (FeatureStateDto) entity, removeListener, backgroundColor, style);
3178
	    }
3172 3179

  
3173 3180
        //check for parent section when entity is null
3174 3181
        //this happens when AbstractUnboundEntityCollectionSection is used

Also available in: Unified diff