Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.service.align.internal
Class AlignmentServiceUndoSupport.ReplaceOperation

java.lang.Object
  extended by org.eclipse.core.commands.operations.AbstractOperation
      extended by eu.esdihumboldt.hale.ui.service.align.internal.AlignmentServiceUndoSupport.ReplaceOperation
All Implemented Interfaces:
org.eclipse.core.commands.operations.IUndoableOperation
Enclosing class:
AlignmentServiceUndoSupport

public class AlignmentServiceUndoSupport.ReplaceOperation
extends org.eclipse.core.commands.operations.AbstractOperation

Operation that replaces a cell in the alignment.


Constructor Summary
AlignmentServiceUndoSupport.ReplaceOperation(MutableCell oldCell, MutableCell newCell)
          Create an operation that replaces a cell in the alignment.
 
Method Summary
 org.eclipse.core.runtime.IStatus execute(org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.runtime.IAdaptable info)
           
 org.eclipse.core.runtime.IStatus redo(org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.runtime.IAdaptable info)
           
 org.eclipse.core.runtime.IStatus undo(org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.runtime.IAdaptable info)
           
 
Methods inherited from class org.eclipse.core.commands.operations.AbstractOperation
addContext, canExecute, canRedo, canUndo, dispose, getContexts, getLabel, hasContext, removeContext, setLabel, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AlignmentServiceUndoSupport.ReplaceOperation

public AlignmentServiceUndoSupport.ReplaceOperation(MutableCell oldCell,
                                                    MutableCell newCell)
Create an operation that replaces a cell in the alignment.

Parameters:
oldCell - the cell to replace
newCell - the new cell to add
Method Detail

execute

public org.eclipse.core.runtime.IStatus execute(org.eclipse.core.runtime.IProgressMonitor monitor,
                                                org.eclipse.core.runtime.IAdaptable info)
                                         throws org.eclipse.core.commands.ExecutionException
Specified by:
execute in interface org.eclipse.core.commands.operations.IUndoableOperation
Specified by:
execute in class org.eclipse.core.commands.operations.AbstractOperation
Throws:
org.eclipse.core.commands.ExecutionException
See Also:
AbstractOperation.execute(IProgressMonitor, IAdaptable)

redo

public org.eclipse.core.runtime.IStatus redo(org.eclipse.core.runtime.IProgressMonitor monitor,
                                             org.eclipse.core.runtime.IAdaptable info)
                                      throws org.eclipse.core.commands.ExecutionException
Specified by:
redo in interface org.eclipse.core.commands.operations.IUndoableOperation
Specified by:
redo in class org.eclipse.core.commands.operations.AbstractOperation
Throws:
org.eclipse.core.commands.ExecutionException
See Also:
AbstractOperation.redo(IProgressMonitor, IAdaptable)

undo

public org.eclipse.core.runtime.IStatus undo(org.eclipse.core.runtime.IProgressMonitor monitor,
                                             org.eclipse.core.runtime.IAdaptable info)
                                      throws org.eclipse.core.commands.ExecutionException
Specified by:
undo in interface org.eclipse.core.commands.operations.IUndoableOperation
Specified by:
undo in class org.eclipse.core.commands.operations.AbstractOperation
Throws:
org.eclipse.core.commands.ExecutionException
See Also:
AbstractOperation.undo(IProgressMonitor, IAdaptable)

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d