Package org.eclipse.xtext.workspace
Class WorkspaceConfig
- java.lang.Object
-
- org.eclipse.xtext.workspace.WorkspaceConfig
-
- All Implemented Interfaces:
IWorkspaceConfig
public class WorkspaceConfig extends java.lang.Object implements IWorkspaceConfig
The default workspace consists of multiple projects and always contains the unknown project that is used for projectless files.
-
-
Constructor Summary
Constructors Constructor Description WorkspaceConfig(IProjectConfig... initialProjects)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProject(IProjectConfig project)IProjectConfigfindProjectByName(java.lang.String name)IProjectConfigfindProjectContaining(org.eclipse.emf.common.util.URI member)java.util.Set<? extends IProjectConfig>getProjects()
-
-
-
Constructor Detail
-
WorkspaceConfig
public WorkspaceConfig(IProjectConfig... initialProjects)
-
-
Method Detail
-
getProjects
public java.util.Set<? extends IProjectConfig> getProjects()
- Specified by:
getProjectsin interfaceIWorkspaceConfig- Returns:
- the set of projects belonging to the current workspace. Note that these are usually only populated in the context of an IDE.
-
addProject
public void addProject(IProjectConfig project)
-
findProjectByName
public IProjectConfig findProjectByName(java.lang.String name)
- Specified by:
findProjectByNamein interfaceIWorkspaceConfig- Returns:
- the project with the given name or null if none was found
-
findProjectContaining
public IProjectConfig findProjectContaining(org.eclipse.emf.common.util.URI member)
- Specified by:
findProjectContainingin interfaceIWorkspaceConfig- Returns:
- the project whose source folders physically contain this member or null if none was found
-
-