org.eclipse.emf.emfstore.internal.client.ui.controller
Class UIRegisterEPackageController

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.client.ui.common.MonitoredEMFStoreAction<T>
      extended by org.eclipse.emf.emfstore.internal.client.ui.controller.AbstractEMFStoreUIController<Void>
          extended by org.eclipse.emf.emfstore.internal.client.ui.controller.UIRegisterEPackageController

public class UIRegisterEPackageController
extends AbstractEMFStoreUIController<Void>

The Class UIRegisterEPackageController.

Author:
Tobias Verhoeven

Constructor Summary
UIRegisterEPackageController(org.eclipse.swt.widgets.Shell shell, ESServer serverInfo)
          Instantiates a new UIRegisterPackageController.
 
Method Summary
 Void doRun(org.eclipse.core.runtime.IProgressMonitor monitor)
          The actual behavior that should be performed when the MonitoredEMFStoreAction.execute() is called.
Must be implemented by clients.
 void registerEPackage(ServerInfo serverInfo)
          Register a new EPackage which can be selected with a SelectionDialog.
 
Methods inherited from class org.eclipse.emf.emfstore.internal.client.ui.controller.AbstractEMFStoreUIController
confirm, getShell, setShell
 
Methods inherited from class org.eclipse.emf.emfstore.internal.client.ui.common.MonitoredEMFStoreAction
afterRun, execute, executeSub, isForked, preRun
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIRegisterEPackageController

public UIRegisterEPackageController(org.eclipse.swt.widgets.Shell shell,
                                    ESServer serverInfo)
Instantiates a new UIRegisterPackageController.

Parameters:
shell - shell
serverInfo - the server info
Method Detail

registerEPackage

public void registerEPackage(ServerInfo serverInfo)
                      throws ESException
Register a new EPackage which can be selected with a SelectionDialog.

Parameters:
serverInfo - server info
Throws:
ESException - if any error in the EmfStore occurs

doRun

public Void doRun(org.eclipse.core.runtime.IProgressMonitor monitor)
Description copied from class: MonitoredEMFStoreAction
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:
monitor - the IProgressMonitor that should be used by clients to update the status of their progress
Returns:
an optional return value


Copyright © 2015. All Rights Reserved.