cleanup
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / key / polytomous / e4 / handler / CreateChildNodeHandlerE4.java
index cbdd8d21e43a2237bf7af3bd03affcc65750f122..01ca3bbee0390cd5ba4be355d853e13afcc87a8c 100644 (file)
@@ -1,5 +1,10 @@
 /**
+ * Copyright (C) 2007 EDIT
+ * European Distributed Institute of Taxonomy
+ * http://www.e-taxonomy.eu
  *
+ * The contents of this file are subject to the Mozilla Public License Version 1.1
+ * See LICENSE.TXT at the top of this package for the full license terms.
  */
 package eu.etaxonomy.taxeditor.editor.key.polytomous.e4.handler;
 
@@ -20,17 +25,14 @@ import eu.etaxonomy.taxeditor.editor.EditorUtil;
 import eu.etaxonomy.taxeditor.editor.key.polytomous.e4.PolytomousKeyListEditorE4;
 import eu.etaxonomy.taxeditor.editor.key.polytomous.operation.CreateNodeOperation;
 import eu.etaxonomy.taxeditor.model.AbstractUtility;
-import eu.etaxonomy.taxeditor.operation.AbstractPostOperation;
 
 /**
  *
  * @author pplitzner
  * @since Sep 28, 2017
- *
  */
 public class CreateChildNodeHandlerE4 {
 
-
     @Execute
     public void execute(@Named(IServiceConstants.ACTIVE_PART)MPart activePart,
             @Named(IServiceConstants.ACTIVE_SELECTION)IStructuredSelection selection,
@@ -45,7 +47,7 @@ public class CreateChildNodeHandlerE4 {
             IUndoContext undoContext = EditorUtil.getUndoContext();
             editor.changed(null);
 
-            AbstractPostOperation operation = new CreateNodeOperation(
+            CreateNodeOperation operation = new CreateNodeOperation(
                     label, undoContext, pk.getRoot(), editor);
             AbstractUtility.executeOperation(operation, sync);
         } else {
@@ -56,7 +58,7 @@ public class CreateChildNodeHandlerE4 {
             PolytomousKeyNode keyNode = (PolytomousKeyNode) selection
                     .getFirstElement();
             editor.changed(null);
-            AbstractPostOperation operation = new CreateNodeOperation(
+            CreateNodeOperation operation = new CreateNodeOperation(
                     label, undoContext, keyNode, editor);
             AbstractUtility.executeOperation(operation, sync);
         }
@@ -72,5 +74,4 @@ public class CreateChildNodeHandlerE4 {
         menuItem.setVisible(canExecute);
         return canExecute;
     }
-
-}
+}
\ No newline at end of file