|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
IDataModelOperation defines an IDataModel driven undoable operation. Every IDataModelOperation may be extended by third party clients using the extended operation framework.
This interface is not intended to be implemented by clients. Clients should subclass
AbstractDataModelOperation
.
IDataModel
Method Summary | |
---|---|
IDataModel |
getDataModel()
Returns this operation's IDataModel. |
IEnvironment |
getEnvironment()
Returns the IEvironment set in setEnvironment(IEnvironment) } |
java.lang.String |
getID()
Returns the unique operation id. |
int |
getOperationExecutionFlags()
Returns the OperationExecutionFlags used for executing this Operation as a workspace job. |
ISchedulingRule |
getSchedulingRule()
Returns the ISchedulingRule used for executing this job using IWorkspace#run(org.eclipse.core.resources.IWorkspaceRunnable, ISchedulingRule, int, org.eclipse.core.runtime.IProgressMonitor) .
|
void |
setDataModel(IDataModel model)
Sets the IDataModel for this operation. |
void |
setEnvironment(IEnvironment environment)
The framework will set the environment on this operation before it is executed. |
void |
setID(java.lang.String id)
Sets the unique operation id. |
Method Detail |
public void setID(java.lang.String id)
Sets the unique operation id. Typically, clients should not invoke this method.
id
- the unique operation idpublic java.lang.String getID()
Returns the unique operation id.
public void setDataModel(IDataModel model)
Sets the IDataModel for this operation.
model
- the IDataModel used to run this operationpublic IDataModel getDataModel()
Returns this operation's IDataModel.
public ISchedulingRule getSchedulingRule()
Returns the ISchedulingRule used for executing this job using
IWorkspace#run(org.eclipse.core.resources.IWorkspaceRunnable, ISchedulingRule, int, org.eclipse.core.runtime.IProgressMonitor)
.
If null
is returned, then IWorkspace.getRoot() is used as the ISchedulingRule
during execution.
getOperationExecutionFlags()
,
IWorkspace#run(org.eclipse.core.resources.IWorkspaceRunnable, ISchedulingRule, int,
org.eclipse.core.runtime.IProgressMonitor)
public int getOperationExecutionFlags()
Returns the OperationExecutionFlags used for executing this Operation as a workspace job.
IWorkspace#run(org.eclipse.core.resources.IWorkspaceRunnable, ISchedulingRule, int, org.eclipse.core.runtime.IProgressMonitor)
.
getSchedulingRule()
,
IWorkspace#run(org.eclipse.core.resources.IWorkspaceRunnable, ISchedulingRule, int,
org.eclipse.core.runtime.IProgressMonitor)
public void setEnvironment(IEnvironment environment)
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.
environment
- the IEnvironment to set.public IEnvironment getEnvironment()
setEnvironment(IEnvironment)
}
setEnvironment(IEnvironment)
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |