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/handler/RemotingCreateChildPolytomousKeyNodeHandler.java
24 24
import eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyEditorLabels;
25 25
import eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyListEditor;
26 26
import eu.etaxonomy.taxeditor.editor.key.polytomous.operation.RemotingCreatePolytomousKeyNodeOperation;
27
import eu.etaxonomy.taxeditor.operation.RemotingCdmHandler;
28 27

  
29 28
/**
30 29
 * @author cmathew
31 30
 * @date 21 Jul 2015
32 31
 *
33 32
 */
34
public class RemotingCreateChildPolytomousKeyNodeHandler extends RemotingCdmHandler {
33
public class RemotingCreateChildPolytomousKeyNodeHandler extends AbstractPolytomousKeyNodeHandler {
35 34

  
36 35
    private PolytomousKeyNode parentNode;
36
    IPolytomousKeyEditorPage editorPage;
37

  
37 38

  
38 39
    public RemotingCreateChildPolytomousKeyNodeHandler() {
39 40
        super(PolytomousKeyEditorLabels.CREATE_CHILD_POLYTOMOUS_KEY_NODE_LABEL);
......
46 47
        IEditorPart editor = HandlerUtil.getActiveEditor(event);
47 48

  
48 49
        if (editor instanceof KeyEditor) {
49
            IPolytomousKeyEditorPage editorPage = (IPolytomousKeyEditorPage) ((KeyEditor) editor)
50
            editorPage = (IPolytomousKeyEditorPage) ((KeyEditor) editor)
50 51
                    .getActiveEditor();
51 52

  
52 53
            if (editorPage instanceof PolytomousKeyListEditor) {
......
75 76
     */
76 77
    @Override
77 78
    public AbstractOperation prepareOperation(ExecutionEvent event) {
78
        return new RemotingCreatePolytomousKeyNodeOperation(event.getTrigger(), false, parentNode);
79
        return new RemotingCreatePolytomousKeyNodeOperation(event.getTrigger(), false, parentNode, editorPage);
79 80
    }
80 81

  
81 82
    /* (non-Javadoc)

Also available in: Unified diff