|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.internal.client.ui.common.MonitoredEMFStoreAction<T>
T
- the return type of the actionpublic abstract class MonitoredEMFStoreAction<T>
A monitored action will be executed using the IProgressService
of
Eclipse. Clients may use the passed IProgressMonitor
to update the
status of their progress.
Constructor Summary | |
---|---|
MonitoredEMFStoreAction(boolean fork,
boolean cancelable)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MonitoredEMFStoreAction(boolean fork, boolean cancelable)
fork
- whether the IProgressService
should fork the requestcancelable
- whether the request is cancelableMethod Detail |
---|
public final T execute()
IProgressService
of Eclipse.
doRun(IProgressMonitor)
public final T executeSub(org.eclipse.core.runtime.IProgressMonitor monitor)
SubProgressMonitor
.
monitor
- the currently used IProgressMonitor
doRun(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 progress
ESException
- in case an error occurspublic boolean isForked()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |