|
|
|
|
org.eclipse.rse.ui.operations
Class SystemProgressDialogRunnableContext
java.lang.Object
org.eclipse.rse.ui.operations.SystemProgressDialogRunnableContext
-
All Implemented Interfaces:
-
ISystemRunnableContext
-
public class SystemProgressDialogRunnableContext
- extends
Object
- implements
ISystemRunnableContext
This runnable context blocks the UI and can therefore have a shell assigned to
it (since the shell won't be closed by the user before the runnable completes).
Method Summary
|
ISchedulingRule
|
getSchedulingRule
()
Returns the scheduling rule that will be obtained before the context
executes a runnable or null if no scheduling rule is to be obtained. |
Shell
|
getShell
()
Returns the shell. |
boolean
|
isPostponeBuild
()
Returns whether the auto-build will be postponed while this
context is executing a runnable. |
void
|
run
(
IRunnableWithProgress runnable)
Runs the runnable. |
void
|
setPostponeBuild
(boolean postponeBuild)
Sets whether the auto-build will be postponed while this
context is executing a runnable. |
void
|
setRunnableContext
(
IRunnableContext runnableContext)
Sets the runnable context that is used to execute the runnable. |
void
|
setSchedulingRule
(
ISchedulingRule schedulingRule)
Sets the scheduling rule that will be obtained before the context
executes a runnable or null if no scheduling rule is to be obtained. |
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
SystemProgressDialogRunnableContext
public SystemProgressDialogRunnableContext(
Shell shell)
- Constructor.
-
Parameters:
-
shell - the shell for the runnable context.
isPostponeBuild
public boolean isPostponeBuild()
- Returns whether the auto-build will be postponed while this
context is executing a runnable.
-
-
-
Returns:
-
true if the auto-build will be postponed while this
context is executing a runnable, false otherwise.
setPostponeBuild
public void setPostponeBuild(boolean postponeBuild)
- Sets whether the auto-build will be postponed while this
context is executing a runnable.
-
-
-
Parameters:
-
postponeBuild - true to postpone the auto-build, false
getSchedulingRule
public
ISchedulingRule getSchedulingRule()
- Returns the scheduling rule that will be obtained before the context
executes a runnable or
null if no scheduling rule is to be obtained.
-
-
-
Returns:
- the scheduling rule to be obtained or
null .
setSchedulingRule
public void setSchedulingRule(
ISchedulingRule schedulingRule)
- Sets the scheduling rule that will be obtained before the context
executes a runnable or
null if no scheduling rule is to be obtained.
-
-
-
Parameters:
-
schedulingRule - the scheduling rule to be obtained or null .
getShell
public
Shell getShell()
- Returns the shell.
-
-
Specified by:
-
getShell
in interface
ISystemRunnableContext
-
-
Returns:
- a shell.
-
See Also:
-
ISystemRunnableContext.getShell()
setRunnableContext
public void setRunnableContext(
IRunnableContext runnableContext)
- Sets the runnable context that is used to execute the runnable. By default,
the workbench's progress service is used, but clients can provide their own.
-
-
-
Parameters:
-
runnableContext - the runnable contenxt used to execute runnables.
run
public void run(
IRunnableWithProgress runnable)
throws
InvocationTargetException,
InterruptedException
- Runs the runnable.
-
-
Specified by:
-
run
in interface
ISystemRunnableContext
-
-
Throws:
-
InvocationTargetException
-
InterruptedException
-
See Also:
-
ISystemRunnableContext.run(org.eclipse.jface.operation.IRunnableWithProgress)
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.
|
|
|