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

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<ESLocalProject>
          extended by org.eclipse.emf.emfstore.internal.client.ui.controller.UICheckoutController

public class UICheckoutController
extends AbstractEMFStoreUIController<ESLocalProject>

UI controller for checking out a project.

Author:
ovonwesen, emueller

Constructor Summary
UICheckoutController(org.eclipse.swt.widgets.Shell shell, ESPrimaryVersionSpec versionSpec, ESRemoteProject remoteProject)
          Constructor.
UICheckoutController(org.eclipse.swt.widgets.Shell shell, ESPrimaryVersionSpec versionSpec, ESRemoteProject remoteProject, boolean askForBranch)
          Constructor.
UICheckoutController(org.eclipse.swt.widgets.Shell shell, ESPrimaryVersionSpec versionSpec, ESUsersession session, ESRemoteProject remoteProject)
          Constructor.
UICheckoutController(org.eclipse.swt.widgets.Shell shell, ESPrimaryVersionSpec versionSpec, ESUsersession session, ESRemoteProject remoteProject, boolean askForBranch)
          Constructor.
UICheckoutController(org.eclipse.swt.widgets.Shell shell, ESRemoteProject remoteProject)
          Constructor.
UICheckoutController(org.eclipse.swt.widgets.Shell shell, ESRemoteProject remoteProject, boolean askForBranch)
          Constructor.
UICheckoutController(org.eclipse.swt.widgets.Shell shell, ESUsersession session, ESRemoteProject remoteProject)
          Constructor.
UICheckoutController(org.eclipse.swt.widgets.Shell shell, ESUsersession session, ESRemoteProject remoteProject, boolean askForBranch)
          Constructor.
 
Method Summary
 ESLocalProject 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
afterRun, execute, executeSub, isForked, preRun
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UICheckoutController

public UICheckoutController(org.eclipse.swt.widgets.Shell shell,
                            ESRemoteProject remoteProject)
Constructor.

Parameters:
shell - the parent Shell that will be used during checkout
remoteProject - the ESRemoteProject to be checked out

UICheckoutController

public UICheckoutController(org.eclipse.swt.widgets.Shell shell,
                            ESRemoteProject remoteProject,
                            boolean askForBranch)
Constructor.

Parameters:
shell - the parent Shell that will be used during checkout
remoteProject - the ESRemoteProject to be checked out
askForBranch - whether to ask for a branch from which the checkout should happen

UICheckoutController

public UICheckoutController(org.eclipse.swt.widgets.Shell shell,
                            ESPrimaryVersionSpec versionSpec,
                            ESRemoteProject remoteProject)
Constructor.

Parameters:
shell - the parent Shell that will be used during checkout
versionSpec - the ESPrimaryVersionSpec that identifies a specific version to be checked out
remoteProject - the ESRemoteProject to be checked out

UICheckoutController

public UICheckoutController(org.eclipse.swt.widgets.Shell shell,
                            ESPrimaryVersionSpec versionSpec,
                            ESRemoteProject remoteProject,
                            boolean askForBranch)
Constructor.

Parameters:
shell - the parent Shell that will be used during checkout
versionSpec - the ESPrimaryVersionSpec that identifies a specific version to be checked out
remoteProject - the ESRemoteProject to be checked out
askForBranch - whether to ask for a branch from which the checkout should happen

UICheckoutController

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

Parameters:
shell - the parent Shell that will be used during checkout
session - the ESUsersession that will be used to checkout the project
remoteProject - the ESRemoteProject to be checked out

UICheckoutController

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

Parameters:
shell - the parent Shell that will be used during checkout
session - the ESUsersession that will be used to checkout the project
remoteProject - the ESRemoteProject to be checked out
askForBranch - whether to ask for a branch from which the checkout should happen

UICheckoutController

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

Parameters:
shell - the parent Shell that will be used during checkout
versionSpec - the ESPrimaryVersionSpec that identifies a specific version to be checked out
session - the ESUsersession that will be used to checkout the project
remoteProject - the ESRemoteProject to be checked out

UICheckoutController

public UICheckoutController(org.eclipse.swt.widgets.Shell shell,
                            ESPrimaryVersionSpec versionSpec,
                            ESUsersession session,
                            ESRemoteProject remoteProject,
                            boolean askForBranch)
Constructor.

Parameters:
shell - the parent Shell that will be used during checkout
remoteProject - the ESRemoteProject to be checked out
versionSpec - the ESPrimaryVersionSpec that identifies a specific version to be checked out
session - the ESUsersession that will be used to checkout the project
askForBranch - whether to ask for a branch from which the checkout should happen
Method Detail

doRun

public ESLocalProject 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<ESLocalProject>
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.