public class ESWorkspaceImpl extends AbstractAPIImpl<ESWorkspaceImpl,Workspace> implements ESWorkspace
ESWorkspace and Workspace.| Constructor and Description |
|---|
ESWorkspaceImpl(Workspace workspace)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ESServerImpl |
addServer(ESServer server)
Adds a server to the workspace.
|
ESLocalProjectImpl |
createLocalProject(String projectName)
Creates a new local project that is not shared with the server yet.
|
ESLocalProject |
getLocalProject(org.eclipse.emf.ecore.EObject modelElement)
Returns the
ESLocalProject the given model element is contained in. |
Set<ESLocalProject> |
getLocalProjectByName(String projectName)
Returns all projects whose name matches the supplied project name ignoring
any case.
|
List<ESLocalProject> |
getLocalProjects()
Returns all local projects.
|
List<ESServer> |
getServers()
Returns all available servers.
|
void |
removeServer(ESServer server)
Removes a server from the workspace.
|
boolean |
serverExists(ESServer server)
Whether a server with the same name, URL and port as the given one, exists.
|
equals, hashCode, toInternalAPIpublic ESWorkspaceImpl(Workspace workspace)
workspace - the internal delegatepublic List<ESLocalProject> getLocalProjects()
getLocalProjects in interface ESWorkspaceESWorkspace.getLocalProjects()public ESLocalProjectImpl createLocalProject(String projectName)
createLocalProject in interface ESWorkspaceprojectName - the project's nameESWorkspace.createLocalProject(java.lang.String)public List<ESServer> getServers()
getServers in interface ESWorkspaceESWorkspace.getServers()public ESServerImpl addServer(ESServer server)
addServer in interface ESWorkspaceserver - the server to be added to the workspaceESWorkspace.addServer(org.eclipse.emf.emfstore.client.ESServer)public boolean serverExists(ESServer server)
server - the server instance containing the name, URL and port to be checked fortrue, if a server with the same name, URL and port already exists, false otherwisepublic void removeServer(ESServer server) throws ESServerNotFoundException
removeServer in interface ESWorkspaceserver - the server to be removed from the workspaceESServerNotFoundException - in case the server couldn't be found in the workspaceESWorkspace.removeServer(org.eclipse.emf.emfstore.client.ESServer)public ESLocalProject getLocalProject(org.eclipse.emf.ecore.EObject modelElement)
ESLocalProject the given model element is contained in.getLocalProject in interface ESWorkspacemodelElement - the model element whose project should be returnedESWorkspace.getLocalProject(org.eclipse.emf.ecore.EObject)public Set<ESLocalProject> getLocalProjectByName(String projectName)
getLocalProjectByName in interface ESWorkspaceprojectName - the project nameESLocalProjects that match the given name. If no such
project has been found, an empty set is returnedCopyright © 2017. All rights reserved.