|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.ObjectAbstractOperation
org.eclipse.wst.common.frameworks.datamodel.AbstractDataModelOperation
Abstract implementation for an IDataModelOperation.
IDataModelOperation,
Serialized Form| 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.
|
ISchedulingRule |
getSchedulingRule()
Default implementation of getSchedulingRule() returns ResourcesPlugin.getWorkspace().getRoot().
|
IStatus |
redo(IProgressMonitor monitor,
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(). |
IStatus |
undo(IProgressMonitor monitor,
IAdaptable info)
Default empty implementation of undo. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 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 IStatus redo(IProgressMonitor monitor,
IAdaptable info)
throws ExecutionException
Default empty implementation of redo.
ExecutionException
public IStatus undo(IProgressMonitor monitor,
IAdaptable info)
throws ExecutionException
Default empty implementation of undo.
ExecutionException
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||