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

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.UIShareProjectController

public class UIShareProjectController
extends AbstractEMFStoreUIController<Void>

UI-related controller class that shares a project and displays a progress bar during the share. When finished a confirmation dialog is shown.

Author:
emueller

Constructor Summary
UIShareProjectController(org.eclipse.swt.widgets.Shell shell, ESLocalProject localProject)
          Constructor.
UIShareProjectController(org.eclipse.swt.widgets.Shell shell, ESUsersession usersession, ESLocalProject localProject)
          Constructor.
 
Method Summary
 void afterRun()
          Called after MonitoredEMFStoreAction.doRun(IProgressMonitor) is finished.
 Void doRun(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
          The actual behavior that should be performed when the MonitoredEMFStoreAction.execute() is called.
Must be implemented by clients.
 
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
execute, executeSub, isForked, preRun
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIShareProjectController

public UIShareProjectController(org.eclipse.swt.widgets.Shell shell,
                                ESLocalProject localProject)
Constructor.

Parameters:
shell - the parent Shell that is used during the share
localProject - the ESLocalProject that should be shared

UIShareProjectController

public UIShareProjectController(org.eclipse.swt.widgets.Shell shell,
                                ESUsersession usersession,
                                ESLocalProject localProject)
Constructor.

Parameters:
shell - the parent Shell that is used during the share
usersession - the ESUsersession that is used to share the project
localProject - the ESLocalProject that should be shared
Method Detail

afterRun

public void afterRun()
Description copied from class: MonitoredEMFStoreAction
Called after MonitoredEMFStoreAction.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.

Overrides:
afterRun in class MonitoredEMFStoreAction<Void>

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.