+/**
+* 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;
/**
* 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