cleanup
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / key / polytomous / operation / RefreshNodeNumberingOperation.java
index d3d84db585f6555bb164a613e571dbfa132bb5d0..31058f17fcd6da3571f38a0b35f6579bb012ca8f 100644 (file)
@@ -1,3 +1,11 @@
+/**
+* Copyright (C) 2016 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.operation;
 
 import org.eclipse.core.commands.ExecutionException;
@@ -13,52 +21,38 @@ import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
 /**
  * Operation responsible for refreshing node numbers of the Polytomous Key Nodes.
  * The refresh is performed on the entire Key starting from the root.
- * 
- * @author c.mathew
  *
+ * @author c.mathew
  */
 public class RefreshNodeNumberingOperation extends AbstractPostTaxonOperation {
 
-       PolytomousKeyNode node;
-       private PolytomousKeyNode childNode;
-       
+       private PolytomousKeyNode node;
+
        public RefreshNodeNumberingOperation(String label,
-                       IUndoContext undoContext, 
-                       PolytomousKeyNode node, 
+                       IUndoContext undoContext,
+                       PolytomousKeyNode node,
                        IPostOperationEnabled postOperationEnabled) {
                super(label, undoContext, postOperationEnabled);
                this.node = node;
        }
-       
-       /* (non-Javadoc)
-        * @see org.eclipse.core.commands.operations.AbstractOperation#execute(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)
-        */
+
        @Override
        public IStatus execute(IProgressMonitor monitor, IAdaptable info)
                        throws ExecutionException {
 
-               node.refreshNodeNumbering();            
+               node.refreshNodeNumbering();
                return postExecute(node);
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.core.commands.operations.AbstractOperation#redo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)
-        */
        @Override
        public IStatus redo(IProgressMonitor monitor, IAdaptable info)
                        throws ExecutionException {
-               // TODO Auto-generated method stub
                return null;
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.core.commands.operations.AbstractOperation#undo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)
-        */
        @Override
        public IStatus undo(IProgressMonitor monitor, IAdaptable info)
                        throws ExecutionException {
-               // TODO Auto-generated method stub
                return null;
        }
-
-}
+}
\ No newline at end of file