org.mockcentral.editor.nodes.fixture
Class AddSimpleBoundObjectOperation
java.lang.Object
org.eclipse.core.commands.operations.AbstractOperation
org.mockcentral.editor.nodes.fixture.AddSimpleBoundObjectOperation
- All Implemented Interfaces:
- org.eclipse.core.commands.operations.IUndoableOperation
public class AddSimpleBoundObjectOperation
- extends org.eclipse.core.commands.operations.AbstractOperation
An Operation invoked on a FixtureController
instance to process an addition to the list of simple (non-Mock) JNDI-bound
Objects to be loaded with the Fixture.
- Author:
- David Hutchinson
|
Constructor Summary |
AddSimpleBoundObjectOperation(java.lang.String label,
org.eclipse.core.commands.operations.IUndoContext undoContext,
org.mockcentral.editor.nodes.fixture.FixtureController controller,
org.mockcentral.editor.nodes.fixture.SimpleBoundObjectModel model)
Creates a new instance. |
|
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 |
AddSimpleBoundObjectOperation
public AddSimpleBoundObjectOperation(java.lang.String label,
org.eclipse.core.commands.operations.IUndoContext undoContext,
org.mockcentral.editor.nodes.fixture.FixtureController controller,
org.mockcentral.editor.nodes.fixture.SimpleBoundObjectModel model)
- Creates a new instance.
- Parameters:
label - the label for the operation.undoContext - the IUndoContext in which the operation
is to be executed.controller - the FixtureController upon which the
operation is to be invoked.model - the SimpleBoundObjectModel
containing the Object data.
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
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
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