public class AlignmentServiceUndoSupport.ReplaceOperation
extends org.eclipse.core.commands.operations.AbstractOperation
Constructor and Description |
---|
AlignmentServiceUndoSupport.ReplaceOperation(com.google.common.collect.BiMap<MutableCell,MutableCell> cells)
Create an operation that replaces a cell in the alignment.
|
AlignmentServiceUndoSupport.ReplaceOperation(MutableCell oldCell,
MutableCell newCell)
Create an operation that replaces a cell in the alignment.
|
Modifier and Type | Method and Description |
---|---|
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) |
public AlignmentServiceUndoSupport.ReplaceOperation(MutableCell oldCell, MutableCell newCell)
oldCell
- the cell to replacenewCell
- the new cell to addpublic AlignmentServiceUndoSupport.ReplaceOperation(com.google.common.collect.BiMap<MutableCell,MutableCell> cells)
cells
- mapping from replaced cells to new cellspublic org.eclipse.core.runtime.IStatus execute(org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.runtime.IAdaptable info) throws org.eclipse.core.commands.ExecutionException
execute
in interface org.eclipse.core.commands.operations.IUndoableOperation
execute
in class org.eclipse.core.commands.operations.AbstractOperation
org.eclipse.core.commands.ExecutionException
AbstractOperation.execute(IProgressMonitor, IAdaptable)
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
redo
in interface org.eclipse.core.commands.operations.IUndoableOperation
redo
in class org.eclipse.core.commands.operations.AbstractOperation
org.eclipse.core.commands.ExecutionException
AbstractOperation.redo(IProgressMonitor, IAdaptable)
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
undo
in interface org.eclipse.core.commands.operations.IUndoableOperation
undo
in class org.eclipse.core.commands.operations.AbstractOperation
org.eclipse.core.commands.ExecutionException
AbstractOperation.undo(IProgressMonitor, IAdaptable)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a