org.eclipse.emf.emfstore.client.ui
Interface ESUIControllerFactory

All Known Implementing Classes:
UIControllerFactoryImpl

public interface ESUIControllerFactory

UI Controller factory.

Author:
eneufeld

Field Summary
static ESUIControllerFactory 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.
 

Field Detail

INSTANCE

static final ESUIControllerFactory INSTANCE
The instance.

Method Detail

commitProject

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

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

createBranch

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

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

createBranch

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

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

createLocalProject

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

Parameters:
shell - the parent Shell that should be used
Returns:
the project

createLocalProject

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

Parameters:
shell - the parent Shell that should be used
name - the name of the project
Returns:
the project

createRemoteProject

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

Parameters:
shell - the parent Shell that should be used
usersession - the session to be used to create the project
Returns:
the project

createRemoteProject

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

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

deleteLocalProject

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

Parameters:
shell - the parent Shell that should be used
project - the project to be deleted

deleteRemoteProject

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

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

login

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

Parameters:
shell - the parent Shell that should be used
server - the server to login to

logout

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

Parameters:
shell - the parent Shell that should be used
usersession - the usersession to end

mergeBranch

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

Parameters:
shell - the parent Shell that should be used
project - the project to merge

registerEPackage

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

Parameters:
shell - the parent Shell that should be used
server - the server at which the package should be registered

removeServer

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

Parameters:
shell - the parent Shell that should be used
server - the server to remove

shareProject

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

Parameters:
shell - the parent Shell that should be used
project - the project to share

showHistoryView

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

Parameters:
shell - the parent Shell that should be used
project - the project for which the history is to be displayed

showHistoryView

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

Parameters:
shell - the parent Shell that should be used
eObject - the eObject for which the history is to be displayed

updateProject

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

Parameters:
shell - the parent Shell that should be used
project - the project to update
Returns:
the version spec of the updated project

updateProject

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

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

updateProjectToVersion

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

Parameters:
shell - the parent Shell that should be used
project - the project to update
Returns:
the version spec of the updated project


Copyright © 2015. All Rights Reserved.