|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDataModelOperation
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. |
org.eclipse.core.runtime.jobs.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. |
Methods inherited from interface org.eclipse.core.commands.operations.IUndoableOperation |
---|
addContext, canExecute, canRedo, canUndo, dispose, execute, getContexts, getLabel, hasContext, redo, removeContext, undo |
Method Detail |
---|
void setID(java.lang.String id)
Sets the unique operation id. Typically, clients should not invoke this method.
id
- the unique operation idjava.lang.String getID()
Returns the unique operation id.
void setDataModel(IDataModel model)
Sets the IDataModel for this operation.
model
- the IDataModel used to run this operationIDataModel getDataModel()
Returns this operation's IDataModel.
org.eclipse.core.runtime.jobs.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)
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()
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.IEnvironment getEnvironment()
setEnvironment(IEnvironment)
}
setEnvironment(IEnvironment)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |