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/featuretree/e4/operation/AddFeatureOperation.java
18 18
import eu.etaxonomy.cdm.api.service.IFeatureNodeService;
19 19
import eu.etaxonomy.cdm.api.service.UpdateResult;
20 20
import eu.etaxonomy.cdm.model.description.Feature;
21
import eu.etaxonomy.cdm.model.term.FeatureNode;
21
import eu.etaxonomy.cdm.model.term.TermNode;
22 22
import eu.etaxonomy.taxeditor.operation.AbstractPostOperation;
23 23
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
24 24
import eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled;
......
32 32
 */
33 33
public class AddFeatureOperation extends AbstractPostOperation<Feature> {
34 34

  
35
    private FeatureNode node;
35
    private TermNode<Feature> node;
36 36
    private int position;
37 37
    private UUID featureUuid;
38 38

  
39
    public AddFeatureOperation(UUID featureUuid, FeatureNode node,
39
    public AddFeatureOperation(UUID featureUuid, TermNode<Feature> node,
40 40
            IPostOperationEnabled postOperationEnabled, ICdmEntitySessionEnabled cdmEntitySessionEnabled) {
41 41
        this(featureUuid, node, 0, postOperationEnabled, cdmEntitySessionEnabled);
42 42
    }
43
    public AddFeatureOperation(UUID featureUuid, FeatureNode node, int position,
43
    public AddFeatureOperation(UUID featureUuid, TermNode<Feature> node, int position,
44 44
            IPostOperationEnabled postOperationEnabled, ICdmEntitySessionEnabled cdmEntitySessionEnabled) {
45 45
        super("Add Feature", StoreUtil.getUndoContext(), null, postOperationEnabled, cdmEntitySessionEnabled);
46 46
        this.node = node;

Also available in: Unified diff