|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.jobs.JobChangeAdapter
com.ibm.etools.systems.core.ui.operations.SystemFetchOperation
Field Summary | |
---|---|
protected ISystemViewElementAdapter |
_adapter
|
protected boolean |
_canRunAsJob
|
protected IElementCollector |
_collector
|
protected IWorkbenchPart |
_part
|
protected IAdaptable |
_remoteObject
|
Constructor Summary | |
---|---|
SystemFetchOperation(IWorkbenchPart part,
IAdaptable remoteObject,
ISystemViewElementAdapter adapter,
IElementCollector collector)
|
|
SystemFetchOperation(IWorkbenchPart part,
IAdaptable remoteObject,
ISystemViewElementAdapter adapter,
IElementCollector collector,
boolean canRunAsJob)
|
Method Summary | |
---|---|
protected boolean |
canRunAsJob()
If this operation can safely be run in the background, then subclasses can override this method and return true . |
protected void |
endOperation()
|
protected void |
execute(IProgressMonitor monitor)
Subclasses must override this method to perform the operation. |
protected IAction |
getGotoAction()
This method is called to allow subclasses to configure an action that could be run to show the results of the action to the user. |
protected String |
getJobName()
Return the job name to be used if the action can run as a job. |
protected boolean |
getKeepOperation()
This method is called to allow subclasses to have the operation remain in the progress indicator even after the job is done. |
protected URL |
getOperationIcon()
This method is called to allow subclasses to configure an icon to show when running this operation. |
IWorkbenchPart |
getPart()
Return the part that is associated with this operation. |
protected ISchedulingRule |
getSchedulingRule()
Returns the scheduling rule that is to be obtained before this operation is executed by it's context or null if
no scheduling rule is to be obtained. |
protected Shell |
getShell()
Return a shell that can be used by the operation to display dialogs, etc. |
protected String |
getTaskName()
|
protected boolean |
isPostponeAutobuild()
Return whether the auto-build should be postponed until after the operation is complete. |
void |
run()
Run the operation in a context that is determined by the canRunAsJob()
hint. |
void |
run(IProgressMonitor monitor)
|
protected boolean |
shouldRun()
This method is invoked from the run() method before
the operation is run in the operation's context. |
protected void |
startOperation()
|
Methods inherited from class org.eclipse.core.runtime.jobs.JobChangeAdapter |
---|
aboutToRun, awake, done, running, scheduled, sleeping |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected IWorkbenchPart _part
protected IAdaptable _remoteObject
protected IElementCollector _collector
protected ISystemViewElementAdapter _adapter
protected boolean _canRunAsJob
Constructor Detail |
public SystemFetchOperation(IWorkbenchPart part, IAdaptable remoteObject, ISystemViewElementAdapter adapter, IElementCollector collector)
public SystemFetchOperation(IWorkbenchPart part, IAdaptable remoteObject, ISystemViewElementAdapter adapter, IElementCollector collector, boolean canRunAsJob)
Method Detail |
public IWorkbenchPart getPart()
null
public final void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException
InvocationTargetException
InterruptedException
protected void startOperation()
protected void endOperation()
protected void execute(IProgressMonitor monitor) throws Exception, InterruptedException
monitor
-
Exception
InterruptedException
protected String getTaskName()
public final void run() throws InvocationTargetException, InterruptedException
canRunAsJob()
hint. If this operation can run as a job then it will be run in a background thread.
Otherwise it will run in the foreground and block the caller.
InvocationTargetException
InterruptedException
protected boolean shouldRun()
run()
method before
the operation is run in the operation's context. Subclasses may
override in order to perform prechecks to determine if the operation
should run. This may include prompting the user for information, etc.
protected ISchedulingRule getSchedulingRule()
null
if
no scheduling rule is to be obtained. If the operation is run
as a job, the schdulin rule is used as the schduling rule of the
job. Otherwise, it is obtained before execution of the operation
occurs.
By default, no scheduling rule is obtained. Sublcasses can override to in order ot obtain a scheduling rule or can obtain schduling rules withing their operation if finer grained schduling is desired.
null
.protected boolean isPostponeAutobuild()
protected boolean canRunAsJob()
true
. This will make their
action run in a Job
.
Subsclass that override this method should
also override the getJobName()
method.
true
if this action can be run in the background and
false
otherwise.protected String getJobName()
canRunAsJob()
returns true
).
protected IAction getGotoAction()
protected URL getOperationIcon()
protected boolean getKeepOperation()
true
to keep the operation and false
otherwise.protected Shell getShell()
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |