Project

General

Profile

« Previous | Next » 

Revision 033aad78

Added by Katja Luther over 7 years ago

all polytomouskey related handler are now extended from RemotingCdmHandler

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/key/polytomous/operation/InsertPolytomousKeyNodeOperation.java
17 17
import eu.etaxonomy.cdm.api.application.CdmChangeEvent.Action;
18 18
import eu.etaxonomy.cdm.model.common.CdmBase;
19 19
import eu.etaxonomy.cdm.model.description.PolytomousKeyNode;
20
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
20 21
import eu.etaxonomy.taxeditor.operation.RemotingCdmDefaultOperation;
21 22

  
22 23
/**
......
30 31

  
31 32
    private final static String LABEL = "Insert new polytomous key node";
32 33

  
34
    /**
35
    *
36
    */
37
   protected IPostOperationEnabled postOperationEnabled;
38

  
33 39
    /**
34 40
     * @param label
35 41
     * @param action
......
38 44
     */
39 45
    public InsertPolytomousKeyNodeOperation(Object source,
40 46
            boolean async,
41
            PolytomousKeyNode parentNode) {
47
            PolytomousKeyNode parentNode, IPostOperationEnabled postOperationEnabled) {
42 48
        super(LABEL, Action.Create, source, async);
43 49
        this.parentNode = parentNode;
50
        this.postOperationEnabled = postOperationEnabled;
44 51
    }
45 52

  
46 53
    /**
......
58 65
        for (PolytomousKeyNode node: copy){
59 66
           childNode.addChild(node);
60 67
        }
61

  
68
        this.postOperationEnabled.postOperation(childNode);
62 69
        return childNode;
63 70
    }
64 71

  

Also available in: Unified diff