org.eclipse.emf.emfstore.internal.client.ui.controller
Class UIGenericExportImportController
java.lang.Object
org.eclipse.emf.emfstore.internal.client.ui.common.MonitoredEMFStoreAction<T>
org.eclipse.emf.emfstore.internal.client.ui.controller.AbstractEMFStoreUIController<Void>
org.eclipse.emf.emfstore.internal.client.ui.controller.UIGenericExportImportController
public class UIGenericExportImportController
- extends AbstractEMFStoreUIController<Void>
Generic UI-specific controller class that is capable of executing
both, import and export controller classes.
- Author:
- emueller
UIGenericExportImportController
public UIGenericExportImportController(org.eclipse.swt.widgets.Shell shell,
IExportImportController controller)
- Constructor.
- Parameters:
shell
- the parent Shell
controller
- the IExportImportController
to be executed
preRun
public boolean preRun()
- Called right before
MonitoredEMFStoreAction.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.
- Overrides:
preRun
in class MonitoredEMFStoreAction<Void>
- Returns:
- true, if execution may continue, false, if requirements for
executing
MonitoredEMFStoreAction.doRun(IProgressMonitor)
are not met - See Also:
MonitoredEMFStoreAction.preRun()
doRun
public Void doRun(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
throws ESException
- The actual behavior that should be performed when the
MonitoredEMFStoreAction.execute()
is called.
Must be implemented by clients.
- Specified by:
doRun
in class MonitoredEMFStoreAction<Void>
- Parameters:
progressMonitor
- the IProgressMonitor
that should be used by clients to
update the status of their progress
- Returns:
- an optional return value
- Throws:
ESException
- in case an error occurs- See Also:
MonitoredEMFStoreAction.doRun(org.eclipse.core.runtime.IProgressMonitor)
Copyright © 2015. All Rights Reserved.