public class WorkbenchRunnableAdapter extends 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(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 falsepublic org.eclipse.core.runtime.jobs.ISchedulingRule getSchedulingRule()
public void threadChange(Thread thread)
threadChange in interface org.eclipse.jface.operation.IThreadListenerpublic void run(org.eclipse.core.runtime.IProgressMonitor monitor)
throws InvocationTargetException,
InterruptedException
run in interface org.eclipse.jface.operation.IRunnableWithProgressInvocationTargetExceptionInterruptedExceptionCopyright © 2016. All Rights Reserved.