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

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.client.ui.controller.UIControllerFactoryImpl
All Implemented Interfaces:
ESUIControllerFactory

public final class UIControllerFactoryImpl
extends Object
implements ESUIControllerFactory

Implementation of the UI controller factory.


Field Summary
static UIControllerFactoryImpl INSTANCE
          The instance.
 
Method Summary
 ESPrimaryVersionSpec commitProject(org.eclipse.swt.widgets.Shell shell, ESLocalProject project)
          Commits the changes of a project.
 ESPrimaryVersionSpec createBranch(org.eclipse.swt.widgets.Shell shell, ESProject project)
          Creates a new branch.
 ESPrimaryVersionSpec createBranch(org.eclipse.swt.widgets.Shell shell, ESProject project, ESBranchVersionSpec branch)
          Creates a new branch.
 ESLocalProject createLocalProject(org.eclipse.swt.widgets.Shell shell)
          Create a new local project.
 ESLocalProject createLocalProject(org.eclipse.swt.widgets.Shell shell, String name)
          Create a new local project.
 ESRemoteProject createRemoteProject(org.eclipse.swt.widgets.Shell shell, ESUsersession usersession)
          Create a new remote project.
 ESRemoteProject createRemoteProject(org.eclipse.swt.widgets.Shell shell, ESUsersession usersession, String projectName)
          Create a new remote project.
 void deleteLocalProject(org.eclipse.swt.widgets.Shell shell, ESLocalProject project)
          Deletes a local project.
 void deleteRemoteProject(org.eclipse.swt.widgets.Shell shell, ESRemoteProject remoteProject, ESUsersession usersession)
          Deletes a remote project.
 void login(org.eclipse.swt.widgets.Shell shell, ESServer server)
          Login to the server.
 void logout(org.eclipse.swt.widgets.Shell shell, ESUsersession usersession)
          Log out a usersession.
 void mergeBranch(org.eclipse.swt.widgets.Shell shell, ESLocalProject project)
          Merge a branch into the project.
 void registerEPackage(org.eclipse.swt.widgets.Shell shell, ESServer server)
          Register a new EPackage at the server.
 void removeServer(org.eclipse.swt.widgets.Shell shell, ESServer server)
          Remove a server from the workspace.
 void shareProject(org.eclipse.swt.widgets.Shell shell, ESLocalProject project)
          Share a project.
 void showHistoryView(org.eclipse.swt.widgets.Shell shell, org.eclipse.emf.ecore.EObject eObject)
          Display the history view.
 void showHistoryView(org.eclipse.swt.widgets.Shell shell, ESLocalProject project)
          Display the history view.
 ESPrimaryVersionSpec updateProject(org.eclipse.swt.widgets.Shell shell, ESLocalProject project)
          Update a project.
 ESPrimaryVersionSpec updateProject(org.eclipse.swt.widgets.Shell shell, ESLocalProject project, ESVersionSpec version)
          Update a project.
 ESPrimaryVersionSpec updateProjectToVersion(org.eclipse.swt.widgets.Shell shell, ESLocalProject project)
          Update a project to a specific version.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final UIControllerFactoryImpl INSTANCE
The instance.

Method Detail

commitProject

public ESPrimaryVersionSpec commitProject(org.eclipse.swt.widgets.Shell shell,
                                          ESLocalProject project)
Commits the changes of a project.

Specified by:
commitProject in interface ESUIControllerFactory
Parameters:
shell - the parent Shell that should be used
project - the project which changes are to be committed
Returns:
the version spec of the commit
See Also:
ESUIControllerFactory.commitProject(org.eclipse.swt.widgets.Shell, org.eclipse.emf.emfstore.client.ESLocalProject)

createBranch

public ESPrimaryVersionSpec createBranch(org.eclipse.swt.widgets.Shell shell,
                                         ESProject project)
Creates a new branch.

Specified by:
createBranch in interface ESUIControllerFactory
Parameters:
shell - the parent Shell that should be used
project - the project for which the branch shall be created
Returns:
the version spec of the branch
See Also:
ESUIControllerFactory.createBranch(org.eclipse.swt.widgets.Shell, org.eclipse.emf.emfstore.client.ESProject)

createBranch

public ESPrimaryVersionSpec createBranch(org.eclipse.swt.widgets.Shell shell,
                                         ESProject project,
                                         ESBranchVersionSpec branch)
Creates a new branch.

Specified by:
createBranch in interface ESUIControllerFactory
Parameters:
shell - the parent Shell that should be used
project - the project for which the branch shall be created
branch - the branch to be committed
Returns:
the version spec of the branch
See Also:
ESUIControllerFactory.createBranch(org.eclipse.swt.widgets.Shell, org.eclipse.emf.emfstore.client.ESProject, org.eclipse.emf.emfstore.server.model.versionspec.ESBranchVersionSpec)

createLocalProject

public ESLocalProject createLocalProject(org.eclipse.swt.widgets.Shell shell)
Create a new local project.

Specified by:
createLocalProject in interface ESUIControllerFactory
Parameters:
shell - the parent Shell that should be used
Returns:
the project
See Also:
ESUIControllerFactory.createLocalProject(org.eclipse.swt.widgets.Shell)

createLocalProject

public ESLocalProject createLocalProject(org.eclipse.swt.widgets.Shell shell,
                                         String name)
Create a new local project.

Specified by:
createLocalProject in interface ESUIControllerFactory
Parameters:
shell - the parent Shell that should be used
name - the name of the project
Returns:
the project
See Also:
ESUIControllerFactory.createLocalProject(org.eclipse.swt.widgets.Shell, java.lang.String)

createRemoteProject

public ESRemoteProject createRemoteProject(org.eclipse.swt.widgets.Shell shell,
                                           ESUsersession usersession)
Create a new remote project.

Specified by:
createRemoteProject in interface ESUIControllerFactory
Parameters:
shell - the parent Shell that should be used
usersession - the session to be used to create the project
Returns:
the project
See Also:
ESUIControllerFactory.createRemoteProject(org.eclipse.swt.widgets.Shell, org.eclipse.emf.emfstore.client.ESUsersession)

createRemoteProject

public ESRemoteProject createRemoteProject(org.eclipse.swt.widgets.Shell shell,
                                           ESUsersession usersession,
                                           String projectName)
Create a new remote project.

Specified by:
createRemoteProject in interface ESUIControllerFactory
Parameters:
shell - the parent Shell that should be used
usersession - the session to be used to create the project
projectName - the name of the project
Returns:
the project
See Also:
ESUIControllerFactory.createRemoteProject(org.eclipse.swt.widgets.Shell, org.eclipse.emf.emfstore.client.ESUsersession, java.lang.String)

deleteLocalProject

public void deleteLocalProject(org.eclipse.swt.widgets.Shell shell,
                               ESLocalProject project)
Deletes a local project.

Specified by:
deleteLocalProject in interface ESUIControllerFactory
Parameters:
shell - the parent Shell that should be used
project - the project to be deleted
See Also:
ESUIControllerFactory.deleteLocalProject(org.eclipse.swt.widgets.Shell, org.eclipse.emf.emfstore.client.ESLocalProject)

deleteRemoteProject

public void deleteRemoteProject(org.eclipse.swt.widgets.Shell shell,
                                ESRemoteProject remoteProject,
                                ESUsersession usersession)
Deletes a remote project.

Specified by:
deleteRemoteProject in interface ESUIControllerFactory
Parameters:
shell - the parent Shell that should be used
remoteProject - the project to be deleted
usersession - the session to be used to create the project
See Also:
ESUIControllerFactory.deleteRemoteProject(org.eclipse.swt.widgets.Shell, org.eclipse.emf.emfstore.client.ESRemoteProject, org.eclipse.emf.emfstore.client.ESUsersession)

login

public void login(org.eclipse.swt.widgets.Shell shell,
                  ESServer server)
Login to the server.

Specified by:
login in interface ESUIControllerFactory
Parameters:
shell - the parent Shell that should be used
server - the server to login to
See Also:
ESUIControllerFactory.login(org.eclipse.swt.widgets.Shell, org.eclipse.emf.emfstore.client.ESServer)

logout

public void logout(org.eclipse.swt.widgets.Shell shell,
                   ESUsersession usersession)
Log out a usersession.

Specified by:
logout in interface ESUIControllerFactory
Parameters:
shell - the parent Shell that should be used
usersession - the usersession to end
See Also:
ESUIControllerFactory.logout(org.eclipse.swt.widgets.Shell, org.eclipse.emf.emfstore.client.ESUsersession)

mergeBranch

public void mergeBranch(org.eclipse.swt.widgets.Shell shell,
                        ESLocalProject project)
Merge a branch into the project.

Specified by:
mergeBranch in interface ESUIControllerFactory
Parameters:
shell - the parent Shell that should be used
project - the project to merge
See Also:
ESUIControllerFactory.mergeBranch(org.eclipse.swt.widgets.Shell, org.eclipse.emf.emfstore.client.ESLocalProject)

registerEPackage

public void registerEPackage(org.eclipse.swt.widgets.Shell shell,
                             ESServer server)
Register a new EPackage at the server.

Specified by:
registerEPackage in interface ESUIControllerFactory
Parameters:
shell - the parent Shell that should be used
server - the server at which the package should be registered
See Also:
ESUIControllerFactory.registerEPackage(org.eclipse.swt.widgets.Shell, org.eclipse.emf.emfstore.client.ESServer)

removeServer

public void removeServer(org.eclipse.swt.widgets.Shell shell,
                         ESServer server)
Remove a server from the workspace.

Specified by:
removeServer in interface ESUIControllerFactory
Parameters:
shell - the parent Shell that should be used
server - the server to remove
See Also:
ESUIControllerFactory.removeServer(org.eclipse.swt.widgets.Shell, org.eclipse.emf.emfstore.client.ESServer)

shareProject

public void shareProject(org.eclipse.swt.widgets.Shell shell,
                         ESLocalProject project)
Share a project.

Specified by:
shareProject in interface ESUIControllerFactory
Parameters:
shell - the parent Shell that should be used
project - the project to share
See Also:
ESUIControllerFactory.shareProject(org.eclipse.swt.widgets.Shell, org.eclipse.emf.emfstore.client.ESLocalProject)

showHistoryView

public void showHistoryView(org.eclipse.swt.widgets.Shell shell,
                            ESLocalProject project)
Display the history view.

Specified by:
showHistoryView in interface ESUIControllerFactory
Parameters:
shell - the parent Shell that should be used
project - the project for which the history is to be displayed
See Also:
ESUIControllerFactory.showHistoryView(org.eclipse.swt.widgets.Shell, org.eclipse.emf.emfstore.client.ESLocalProject)

showHistoryView

public void showHistoryView(org.eclipse.swt.widgets.Shell shell,
                            org.eclipse.emf.ecore.EObject eObject)
Display the history view.

Specified by:
showHistoryView in interface ESUIControllerFactory
Parameters:
shell - the parent Shell that should be used
eObject - the eObject for which the history is to be displayed
See Also:
ESUIControllerFactory.showHistoryView(org.eclipse.swt.widgets.Shell, org.eclipse.emf.ecore.EObject)

updateProject

public ESPrimaryVersionSpec updateProject(org.eclipse.swt.widgets.Shell shell,
                                          ESLocalProject project)
Update a project.

Specified by:
updateProject in interface ESUIControllerFactory
Parameters:
shell - the parent Shell that should be used
project - the project to update
Returns:
the version spec of the updated project
See Also:
ESUIControllerFactory.updateProject(org.eclipse.swt.widgets.Shell, org.eclipse.emf.emfstore.client.ESLocalProject)

updateProject

public ESPrimaryVersionSpec updateProject(org.eclipse.swt.widgets.Shell shell,
                                          ESLocalProject project,
                                          ESVersionSpec version)
Update a project.

Specified by:
updateProject in interface ESUIControllerFactory
Parameters:
shell - the parent Shell that should be used
project - the project to update
version - the version to update to
Returns:
the version spec of the updated project
See Also:
ESUIControllerFactory.updateProject(org.eclipse.swt.widgets.Shell, org.eclipse.emf.emfstore.client.ESLocalProject, org.eclipse.emf.emfstore.server.model.versionspec.ESVersionSpec)

updateProjectToVersion

public ESPrimaryVersionSpec updateProjectToVersion(org.eclipse.swt.widgets.Shell shell,
                                                   ESLocalProject project)
Update a project to a specific version.

Specified by:
updateProjectToVersion in interface ESUIControllerFactory
Parameters:
shell - the parent Shell that should be used
project - the project to update
Returns:
the version spec of the updated project
See Also:
ESUIControllerFactory.updateProjectToVersion(org.eclipse.swt.widgets.Shell, org.eclipse.emf.emfstore.client.ESLocalProject)


Copyright © 2015. All Rights Reserved.