|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.emf.emfstore.internal.common.api.AbstractAPIImpl<ESWorkspaceImpl,Workspace>
org.eclipse.emf.emfstore.internal.client.model.impl.api.ESWorkspaceImpl
public class ESWorkspaceImpl
Mapping between ESWorkspace and Workspace.
| Constructor Summary | |
|---|---|
ESWorkspaceImpl(Workspace workspace)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.eclipse.emf.emfstore.internal.common.api.AbstractAPIImpl |
|---|
equals, hashCode, toInternalAPI |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ESWorkspaceImpl(Workspace workspace)
workspace - the internal delegate| Method Detail |
|---|
public List<ESLocalProject> getLocalProjects()
getLocalProjects in interface ESWorkspaceESWorkspace.getLocalProjects()public ESLocalProjectImpl createLocalProject(String projectName)
createLocalProject in interface ESWorkspaceprojectName - the project's name
ESWorkspace.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 workspace
ESWorkspace.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 for
true, if a server with the same name, URL and port already exists, false otherwise
public void removeServer(ESServer server)
throws ESServerNotFoundException
removeServer in interface ESWorkspaceserver - the server to be removed from the workspace
ESServerNotFoundException - 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 returned
ESWorkspace.getLocalProject(org.eclipse.emf.ecore.EObject)public Set<ESLocalProject> getLocalProjectByName(String projectName)
projectName - the project name
ESLocalProjects that match the given name. If no such
project has been found, an empty set is returned
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||