|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.commands.operations.AbstractOperation
org.eclipse.wst.common.frameworks.datamodel.AbstractDataModelOperation
public abstract class AbstractDataModelOperation
Abstract implementation for an IDataModelOperation.
IDataModelOperation| Constructor Summary | |
|---|---|
AbstractDataModelOperation()
Default constructor. |
|
AbstractDataModelOperation(IDataModel model)
Constructor taking an IDataModel |
|
| Method Summary | |
|---|---|
IDataModel |
getDataModel()
Default implementation of getDataModel() |
IEnvironment |
getEnvironment()
An operation can call this method to get the environment that has been set by the operations framework. |
java.lang.String |
getID()
Default implementation of getID(). |
int |
getOperationExecutionFlags()
Default implementation of getOperationExecutionFlags() returns IWorkspace.AVOID_UPDATE. |
org.eclipse.core.runtime.jobs.ISchedulingRule |
getSchedulingRule()
Default implementation of getSchedulingRule() returns ResourcesPlugin.getWorkspace().getRoot(). |
org.eclipse.core.runtime.IStatus |
redo(org.eclipse.core.runtime.IProgressMonitor monitor,
org.eclipse.core.runtime.IAdaptable info)
Default empty implementation of redo. |
void |
setDataModel(IDataModel model)
Default implementation of setDataModel() |
void |
setEnvironment(IEnvironment env)
The framework will set the environment on this operation before it is executed. |
void |
setID(java.lang.String id)
Default implementation of setID(). |
org.eclipse.core.runtime.IStatus |
undo(org.eclipse.core.runtime.IProgressMonitor monitor,
org.eclipse.core.runtime.IAdaptable info)
Default empty implementation of undo. |
| Methods inherited from class org.eclipse.core.commands.operations.AbstractOperation |
|---|
addContext, canExecute, canRedo, canUndo, dispose, execute, getContexts, getLabel, hasContext, removeContext, setLabel, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.core.commands.operations.IUndoableOperation |
|---|
addContext, canExecute, canRedo, canUndo, dispose, execute, getContexts, getLabel, hasContext, removeContext |
| Constructor Detail |
|---|
public AbstractDataModelOperation()
Default constructor.
public AbstractDataModelOperation(IDataModel model)
Constructor taking an IDataModel
model - the IDataModel used to drive this operation| Method Detail |
|---|
public void setID(java.lang.String id)
Default implementation of setID().
setID in interface IDataModelOperationid - the unique operation idIDataModelOperation.setID(String)public java.lang.String getID()
Default implementation of getID().
getID in interface IDataModelOperationIDataModelOperation.getID()public void setDataModel(IDataModel model)
Default implementation of setDataModel()
setDataModel in interface IDataModelOperationmodel - the IDataModel used to run this operationIDataModelOperation.setDataModel(IDataModel)public IDataModel getDataModel()
Default implementation of getDataModel()
getDataModel in interface IDataModelOperationIDataModelOperation.getDataModel()public org.eclipse.core.runtime.jobs.ISchedulingRule getSchedulingRule()
Default implementation of getSchedulingRule() returns
ResourcesPlugin.getWorkspace().getRoot().
getSchedulingRule in interface IDataModelOperationIDataModelOperation.getSchedulingRule()public int getOperationExecutionFlags()
Default implementation of getOperationExecutionFlags() returns
IWorkspace.AVOID_UPDATE.
getOperationExecutionFlags in interface IDataModelOperationIDataModelOperation.getOperationExecutionFlags()public final void setEnvironment(IEnvironment env)
The framework will set the environment on this operation before it is executed. The operation can then use the environment to report status, log information, and access resources in an environment neutral way.
setEnvironment in interface IDataModelOperationenv - the environment.public final IEnvironment getEnvironment()
An operation can call this method to get the environment that has been set by the operations framework.
getEnvironment in interface IDataModelOperationIDataModelOperation.setEnvironment(IEnvironment)
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
Default empty implementation of redo.
redo in interface org.eclipse.core.commands.operations.IUndoableOperationredo in class org.eclipse.core.commands.operations.AbstractOperationorg.eclipse.core.commands.ExecutionException
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
Default empty implementation of undo.
undo in interface org.eclipse.core.commands.operations.IUndoableOperationundo in class org.eclipse.core.commands.operations.AbstractOperationorg.eclipse.core.commands.ExecutionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||