|
RSE Release 3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.rse.ui.operations.SystemJobRunnableContext
public final class SystemJobRunnableContext
This runnable context executes its operation in the context of a background job.
Constructor Summary | |
---|---|
SystemJobRunnableContext(String jobName)
Constructor. |
|
SystemJobRunnableContext(String jobName,
URL icon,
IAction action,
boolean keep,
IJobChangeListener listener,
IWorkbenchSite site)
Constructor. |
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 auto-builds will be postponed while this context is executing a runnable. |
boolean |
isUser()
Returns whether the job created by this runnable context is user initiated. |
void |
run(IRunnableWithProgress runnable)
Runs the given runnable in the context of the receiver. |
static void |
schedule(Job job,
IWorkbenchSite site)
Schedules the job. |
void |
setPostponeBuild(boolean postponeBuild)
Sets whether auto-builds will be postponed while this context is executing a 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. |
void |
setUser(boolean isUser)
Sets wheter the job created by this runnable context is user initiated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SystemJobRunnableContext(String jobName)
jobName
- the name of the job.public SystemJobRunnableContext(String jobName, URL icon, IAction action, boolean keep, IJobChangeListener listener, IWorkbenchSite site)
jobName
- the name of the job.icon
- the icon for the job.action
- the action for the job.keep
- keep the job in the UI even after it is finished.listener
- listener for job changes.site
- the workbench site.Method Detail |
---|
public void run(IRunnableWithProgress runnable)
ISystemRunnableContext
run
in interface ISystemRunnableContext
ISystemRunnableContext.run(org.eclipse.jface.operation.IRunnableWithProgress)
public Shell getShell()
getShell
in interface ISystemRunnableContext
ISystemRunnableContext.getShell()
public boolean isPostponeBuild()
true
if auto-builds will be postponed while this
context is executing a runnable, false
otherwise.public void setPostponeBuild(boolean postponeBuild)
postponeBuild
- true
to postpone auto-builds, false
otherwise.public ISchedulingRule getSchedulingRule()
null
if no scheduling rule is to be obtained.
null
.public boolean isUser()
true
if the job is a result of user initiated actions, false
otherwise.public void setUser(boolean isUser)
isUser
- true
if the job is a result of user initiated actions, false
otherwise.public void setSchedulingRule(ISchedulingRule schedulingRule)
null
if no scheduling rule is to be obtained.
schedulingRule
- the scheduling rule to be used or null
.public static void schedule(Job job, IWorkbenchSite site)
job
- the job to schedule.site
- the workbench site.
|
RSE Release 3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |