|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtext.ui.refactoring.ui.WorkbenchRunnableAdapter
public class WorkbenchRunnableAdapter
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
org.eclipse.core.runtime.jobs.ISchedulingRule |
getSchedulingRule()
|
void |
run(org.eclipse.core.runtime.IProgressMonitor monitor)
Runs this operation. |
void |
threadChange(java.lang.Thread thread)
Notification that a thread change is occurring. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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
Method Detail |
---|
public org.eclipse.core.runtime.jobs.ISchedulingRule getSchedulingRule()
public void threadChange(java.lang.Thread thread)
threadChange
in interface org.eclipse.jface.operation.IThreadListener
thread
- The new threadpublic void run(org.eclipse.core.runtime.IProgressMonitor monitor) throws java.lang.reflect.InvocationTargetException, java.lang.InterruptedException
org.eclipse.jface.operation.IRunnableWithProgress
IRunnableContext
's run
method,
which supplies the progress monitor.
A request to cancel the operation should be honored and acknowledged
by throwing InterruptedException
.
run
in interface org.eclipse.jface.operation.IRunnableWithProgress
monitor
- the progress monitor to use to display progress and receive
requests for cancelation
java.lang.reflect.InvocationTargetException
- if the run method must propagate a checked exception,
it should wrap it inside an InvocationTargetException
; runtime exceptions are automatically
wrapped in an InvocationTargetException
by the calling context
java.lang.InterruptedException
- if the operation detects a request to cancel,
using IProgressMonitor.isCanceled()
, it should exit by throwing
InterruptedException
IRunnableContext.run(boolean, boolean, org.eclipse.jface.operation.IRunnableWithProgress)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |