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/OnlyApplicableIfEntityCollectionSection.java
13 13
import java.util.Comparator;
14 14

  
15 15
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
16
import eu.etaxonomy.cdm.model.term.FeatureNode;
16
import eu.etaxonomy.cdm.model.description.Feature;
17 17
import eu.etaxonomy.cdm.model.description.State;
18
import eu.etaxonomy.cdm.model.term.TermNode;
18 19
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
19 20
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
20 21
import eu.etaxonomy.taxeditor.ui.section.DefaultCdmBaseComparator;
......
25 26
 * @date 06.03.2018
26 27
 *
27 28
 */
28
public class OnlyApplicableIfEntityCollectionSection extends AbstractUnboundEntityCollectionSection<FeatureNode, State>{
29
public class OnlyApplicableIfEntityCollectionSection extends AbstractUnboundEntityCollectionSection<TermNode<Feature>, State>{
29 30

  
30 31
    public OnlyApplicableIfEntityCollectionSection(CdmFormFactory formFactory, ConversationHolder conversation,
31 32
            ICdmFormElement parentElement, int style) {
......
36 37
     * {@inheritDoc}
37 38
     */
38 39
    @Override
39
    protected Collection<State> getEntityCollection(FeatureNode entity) {
40
    protected Collection<State> getEntityCollection(TermNode<Feature> entity) {
40 41
        return entity.getOnlyApplicableIf();
41 42
    }
42 43

  

Also available in: Unified diff