T - the return type of the actionpublic abstract class MonitoredEMFStoreAction<T> extends Object
IProgressService of
Eclipse. Clients may use the passed IProgressMonitor to update the
status of their progress.| Constructor and Description |
|---|
MonitoredEMFStoreAction(boolean fork,
boolean cancelable)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterRun()
Called after
doRun(IProgressMonitor) is finished. |
abstract T |
doRun(org.eclipse.core.runtime.IProgressMonitor monitor)
The actual behavior that should be performed when the
execute() is called.Must be implemented by clients. |
T |
execute()
Executes the request using the
IProgressService of Eclipse. |
T |
executeSub(org.eclipse.core.runtime.IProgressMonitor monitor)
Executes the request creating a
SubProgressMonitor. |
boolean |
isForked()
Whether this action runs in its own thread.
|
boolean |
preRun()
Called right before
doRun(IProgressMonitor) is called. |
public MonitoredEMFStoreAction(boolean fork,
boolean cancelable)
fork - whether the IProgressService should fork the requestcancelable - whether the request is cancelablepublic final T execute()
IProgressService of Eclipse.doRun(IProgressMonitor)public final T executeSub(org.eclipse.core.runtime.IProgressMonitor monitor)
SubProgressMonitor.monitor - the currently used IProgressMonitordoRun(IProgressMonitor)public boolean preRun()
doRun(IProgressMonitor) is called. This
method will not be executed via the IProgressService and is
intended to be overridden by clients to initialize data that needs user
involvement via UI calls. Clients should not execute long-lasting
operations via this method.doRun(IProgressMonitor) are not metpublic void afterRun()
doRun(IProgressMonitor) is finished. This
method will not be executed via the IProgressService and is
intended to be overridden by clients. Clients may use this method
in order to perform clean-up tasks or the like.public abstract T doRun(org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
execute() is called.monitor - the IProgressMonitor that should be used by clients to
update the status of their progressESException - in case an error occurspublic boolean isForked()
Copyright © 2017. All rights reserved.