public class WorkspaceOperationAdapter extends AbstractWorkspaceOperation
IWorkspaceOperation
adapter that can be used to wrap existing IWorkspaceRunnable
s and use them as
IWorkspaceOperation
s.IWorkspaceOperation
,
ILabeledWorkspaceRunnable
,
IWorkspaceRunnable
Constructor and Description |
---|
WorkspaceOperationAdapter(java.lang.String label,
org.eclipse.core.runtime.jobs.ISchedulingRule rule,
org.eclipse.core.resources.IWorkspaceRunnable runnable) |
Modifier and Type | Method and Description |
---|---|
org.eclipse.core.runtime.jobs.ISchedulingRule |
getRule()
Returns the
scheduling rule required by this operation. |
void |
run(org.eclipse.core.runtime.IProgressMonitor monitor) |
getLabel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLabel
public WorkspaceOperationAdapter(java.lang.String label, org.eclipse.core.runtime.jobs.ISchedulingRule rule, org.eclipse.core.resources.IWorkspaceRunnable runnable)
public org.eclipse.core.runtime.jobs.ISchedulingRule getRule()
IWorkspaceOperation
scheduling rule
required by this operation.null
if no such is required.public void run(org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException