public class WorkbenchRunnableAdapter
extends java.lang.Object
implements org.eclipse.jface.operation.IRunnableWithProgress, org.eclipse.jface.operation.IThreadListener
Constructor and Description |
---|
WorkbenchRunnableAdapter(org.eclipse.core.resources.IWorkspaceRunnable runnable,
org.eclipse.core.runtime.jobs.ISchedulingRule rule)
Runs a workspace runnable with the given lock or
null
to run with no lock at all. |
WorkbenchRunnableAdapter(org.eclipse.core.resources.IWorkspaceRunnable runnable,
org.eclipse.core.runtime.jobs.ISchedulingRule rule,
boolean transfer)
Runs a workspace runnable with the given lock or
null
to run with no lock at all. |
Modifier and Type | Method and Description |
---|---|
org.eclipse.core.runtime.jobs.ISchedulingRule |
getSchedulingRule() |
void |
run(org.eclipse.core.runtime.IProgressMonitor monitor) |
void |
threadChange(java.lang.Thread thread) |
public WorkbenchRunnableAdapter(org.eclipse.core.resources.IWorkspaceRunnable runnable, org.eclipse.core.runtime.jobs.ISchedulingRule rule)
null
to run with no lock at all.runnable
- the workspace runnablerule
- the scheduling rulepublic WorkbenchRunnableAdapter(org.eclipse.core.resources.IWorkspaceRunnable runnable, org.eclipse.core.runtime.jobs.ISchedulingRule rule, boolean transfer)
null
to run with no lock at all.runnable
- the workspace runnablerule
- the scheduling ruletransfer
- true
if the rule is to be transfered
to the model context thread. Otherwise false
public org.eclipse.core.runtime.jobs.ISchedulingRule getSchedulingRule()
public void threadChange(java.lang.Thread thread)
threadChange
in interface org.eclipse.jface.operation.IThreadListener
public void run(org.eclipse.core.runtime.IProgressMonitor monitor) throws java.lang.reflect.InvocationTargetException, java.lang.InterruptedException
run
in interface org.eclipse.jface.operation.IRunnableWithProgress
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException