import eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyEditorLabels;
import eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyListEditor;
import eu.etaxonomy.taxeditor.editor.key.polytomous.operation.RemotingCreatePolytomousKeyNodeOperation;
-import eu.etaxonomy.taxeditor.operation.RemotingCdmHandler;
/**
* @author cmathew
* @date 21 Jul 2015
*
*/
-public class RemotingCreateChildPolytomousKeyNodeHandler extends RemotingCdmHandler {
+public class RemotingCreateChildPolytomousKeyNodeHandler extends AbstractPolytomousKeyNodeHandler {
private PolytomousKeyNode parentNode;
+ IPolytomousKeyEditorPage editorPage;
+
public RemotingCreateChildPolytomousKeyNodeHandler() {
super(PolytomousKeyEditorLabels.CREATE_CHILD_POLYTOMOUS_KEY_NODE_LABEL);
IEditorPart editor = HandlerUtil.getActiveEditor(event);
if (editor instanceof KeyEditor) {
- IPolytomousKeyEditorPage editorPage = (IPolytomousKeyEditorPage) ((KeyEditor) editor)
+ editorPage = (IPolytomousKeyEditorPage) ((KeyEditor) editor)
.getActiveEditor();
if (editorPage instanceof PolytomousKeyListEditor) {
*/
@Override
public AbstractOperation prepareOperation(ExecutionEvent event) {
- return new RemotingCreatePolytomousKeyNodeOperation(event.getTrigger(), false, parentNode);
+ return new RemotingCreatePolytomousKeyNodeOperation(event.getTrigger(), false, parentNode, editorPage);
}
/* (non-Javadoc)