|
|||||||||
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> org.eclipse.emf.emfstore.internal.client.ui.controller.AbstractEMFStoreUIController<T>
T
- return type of the controllerpublic abstract class AbstractEMFStoreUIController<T>
Abstract UI controller class. UI controllers are responsible for calling the controllers that do the actual work
and handle UI related aspects of executing them. This might be, opening some information dialogs as well as handling
exceptions thrown by the controllers. The action executed by a controller may either be run in the UI thread or get
executed in its own thread. If the controller's action should be executed in its own thread clients need to wrap all
UI calls with RunInUIThread or RunInUI.runWithResult(java.util.concurrent.Callable
to avoid invalid thread access
exceptions.
Constructor Summary | |
---|---|
AbstractEMFStoreUIController(org.eclipse.swt.widgets.Shell shell)
Constructor. |
|
AbstractEMFStoreUIController(org.eclipse.swt.widgets.Shell shell,
boolean cancelable)
Constructor. |
|
AbstractEMFStoreUIController(org.eclipse.swt.widgets.Shell shell,
boolean fork,
boolean cancelable)
Constructor. |
Method Summary | |
---|---|
boolean |
confirm(String title,
String message)
Shows a confirmation dialog. |
org.eclipse.swt.widgets.Shell |
getShell()
Returns the shell used by the UI controller. |
void |
setShell(org.eclipse.swt.widgets.Shell newShell)
Sets the shell to be used by this UI controller. |
Methods inherited from class org.eclipse.emf.emfstore.internal.client.ui.common.MonitoredEMFStoreAction |
---|
afterRun, doRun, execute, executeSub, isForked, preRun |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractEMFStoreUIController(org.eclipse.swt.widgets.Shell shell)
shell
- the shell that will be used during execution of the controller's actionpublic AbstractEMFStoreUIController(org.eclipse.swt.widgets.Shell shell, boolean cancelable)
shell
- the shell that will be used during execution of the controller's actioncancelable
- whether the controller's action is cancelablepublic AbstractEMFStoreUIController(org.eclipse.swt.widgets.Shell shell, boolean fork, boolean cancelable)
shell
- the shell that will be used during execution of the controller's actionfork
- whether the controller's action will fork an own thread that runs outside of the UI threadcancelable
- whether the controller's action is cancelableMethod Detail |
---|
public org.eclipse.swt.widgets.Shell getShell()
public void setShell(org.eclipse.swt.widgets.Shell newShell)
newShell
- the shell to be used by the UI controllerpublic boolean confirm(String title, String message)
title
- the title of the confirmation dialogmessage
- the message to be shown in the dialog
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |