Package jetbrains.mps.project
Interface IProject
- 
- All Superinterfaces:
 Project
- All Known Implementing Classes:
 FileMPSProject,Project,ProjectBase
public interface IProject extends Project
MPS project interface Created by apyshkin on 11/3/15. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddModule(SModule module)api for the external project change : adding the module to the project<T> TgetComponent(Class<T> t)Generic extension mechanismModelAccessgetModelAccess()StringgetName()List<SModule>getProjectModules()SRepositorygetRepository()Project.ProjectScopegetScope()voidremoveModule(SModule module)api for the external project change : removing the module from the project 
 - 
 
- 
- 
Method Detail
- 
getScope
@NotNull Project.ProjectScope getScope()
- Returns:
 - scope with all the modules from the project, including generators.
 
 
- 
getComponent
<T> T getComponent(Class<T> t)
Generic extension mechanism- Returns:
 - component instance or 
nullif no extension of specified kind found. 
 
- 
addModule
void addModule(@NotNull SModule module)
api for the external project change : adding the module to the project 
- 
removeModule
void removeModule(@NotNull SModule module)
api for the external project change : removing the module from the project 
- 
getRepository
@NotNull SRepository getRepository()
- Specified by:
 getRepositoryin interfaceProject- Returns:
 - the project repository which contains all the project modules
 
 
- 
getModelAccess
@NotNull ModelAccess getModelAccess()
- Specified by:
 getModelAccessin interfaceProject- Returns:
 - a shorthand for #getRepository().getModelAccess()
 
 
- 
getProjectModules
@NotNull List<SModule> getProjectModules()
- Specified by:
 getProjectModulesin interfaceProject- Returns:
 - all the modules this project owns (todo: contract to be: the same modules are in the #getRepository() repository) currently #getRepository returns the global repository (singleton) which hosts all the modules in the environment
 
 
 - 
 
 -