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

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

public class UIDeleteRemoteProjectController
extends AbstractEMFStoreUIController<Void>

UI controller for deleting a project on the server.

Author:
emueller

Constructor Summary
UIDeleteRemoteProjectController(org.eclipse.swt.widgets.Shell shell, ESUsersession session, ESRemoteProject remoteProject)
          Constructor.
UIDeleteRemoteProjectController(org.eclipse.swt.widgets.Shell shell, ESUsersession session, ProjectInfo projectInfo)
          Constructor.
UIDeleteRemoteProjectController(org.eclipse.swt.widgets.Shell shell, ServerInfo serverInfo, ProjectInfo projectInfo)
           Constructor.
 
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.
 
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

UIDeleteRemoteProjectController

public UIDeleteRemoteProjectController(org.eclipse.swt.widgets.Shell shell,
                                       ServerInfo serverInfo,
                                       ProjectInfo projectInfo)

Constructor.

The ESUsersession to delete the remote server instance will be injected. If this is not desired use one of the other constructors.

Parameters:
shell - the parent Shell that should be used during the deletion of the project
serverInfo - the server info containing the information about the server the project is hosted on
projectInfo - the ProjectInfo that will be used to identify the remote project

UIDeleteRemoteProjectController

public UIDeleteRemoteProjectController(org.eclipse.swt.widgets.Shell shell,
                                       ESUsersession session,
                                       ProjectInfo projectInfo)
Constructor.

Parameters:
shell - the parent Shell that should be used during the deletion of the project
session - the ESUsersession that should be used to delete the remote server instance
projectInfo - the ProjectInfo that will be used to identify the remote project

UIDeleteRemoteProjectController

public UIDeleteRemoteProjectController(org.eclipse.swt.widgets.Shell shell,
                                       ESUsersession session,
                                       ESRemoteProject remoteProject)
Constructor.

Parameters:
shell - the parent Shell that should be used during the deletion of the project
session - the ESUsersession that should be used to delete the remote server instance
remoteProject - the ESRemoteProject that should be deleted
Method Detail

doRun

public Void doRun(org.eclipse.core.runtime.IProgressMonitor monitor)
           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:
monitor - 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.