Package jetbrains.mps.project
Class Solution
- java.lang.Object
 - 
- jetbrains.mps.extapi.module.SModuleBase
 - 
- jetbrains.mps.project.AbstractModule
 - 
- jetbrains.mps.module.ReloadableModuleBase
 - 
- jetbrains.mps.project.Solution
 
 
 
 
 
- 
- All Implemented Interfaces:
 EditableSModule,ReloadableModule,SModule
- Direct Known Subclasses:
 StubSolution
public class Solution extends ReloadableModuleBase
Igor Alshannikov Aug 26, 2005 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from class jetbrains.mps.module.ReloadableModuleBase
ReloadableModuleBase.SModuleDependenciesListener 
- 
Nested classes/interfaces inherited from class jetbrains.mps.project.AbstractModule
AbstractModule.LangAndDevkits 
- 
Nested classes/interfaces inherited from interface jetbrains.mps.module.ReloadableModule
ReloadableModule.DeploymentStatus 
 - 
 
- 
Field Summary
Fields Modifier and Type Field Description static StringSOLUTION_MODELS- 
Fields inherited from class jetbrains.mps.project.AbstractModule
CLASSES, CLASSES_GEN, MODULE_DIR 
- 
Fields inherited from class jetbrains.mps.extapi.module.SModuleBase
MODEL_BY_NAME_COMPARATOR 
 - 
 
- 
Constructor Summary
Constructors Constructor Description Solution(SolutionDescriptor descriptor, IFile file) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanLoadClasses()For some subclasses it is possible to disable class loading forReloadableModule.protected voidcollectMandatoryFacetTypes(Set<String> types)For the time being, MPS enforces certain facets for modules (e.g.protected voiddoSetModuleDescriptor(ModuleDescriptor moduleDescriptor)SolutionKindgetKind()SolutionDescriptorgetModuleDescriptor()static booleanisBootstrapSolution(SModuleReference ref)voidsave()voidsetUpdateBootstrapSolutions(boolean b)StringtoString()voidupdateModelsSet()- 
Methods inherited from class jetbrains.mps.module.ReloadableModuleBase
addDependenciesListener, dependenciesChanged, fireDependenciesChanged, getClass, getClass, getClassLoader0, getOwnClass, getStatus, reload, removeDependenciesListener 
- 
Methods inherited from class jetbrains.mps.project.AbstractModule
addDependency, attach, collectLanguagesAndDevkits, dispose, getDeclaredDependencies, getDependencyVersion, getDependencyVersion, getDescriptorFile, getFacet, getFacets, getFileSystem, getModelRoots, getModuleId, getModuleName, getModuleReference, getModuleSourceDir, getModuleVersion, getOutputPath, getScope, getSourcePaths, getUsedLanguages, getUsedLanguageVersion, getUsedLanguageVersion, handleReadProblem, isChanged, isPackaged, isReadOnly, loadRoots, onModuleLoad, reloadAfterDescriptorChange, removeDependency, rename, renameModels, setChanged, setModuleDescriptor, setModuleDescriptor, setModuleReference, setModuleVersion, setupFacet, updateExternalReferences, updateFacets, updatePackagedDescriptor 
- 
Methods inherited from class jetbrains.mps.extapi.module.SModuleBase
addModuleListener, assertCanChange, assertCanRead, fireBeforeModelRenamed, fireChanged, fireModelRenamed, fireModuleRenamed, getModel, getModels, getRepository, registerModel, removeModuleListener, unregisterModel 
- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface jetbrains.mps.module.ReloadableModule
getClassLoader, willLoad 
- 
Methods inherited from interface org.jetbrains.mps.openapi.module.SModule
addModuleListener, getDeclaredDependencies, getFacet, getFacets, getModel, getModelRoots, getModels, getModels, getModuleId, getModuleName, getModuleReference, getRepository, getUsedLanguages, getUsedLanguageVersion, isPackaged, isReadOnly, removeModuleListener 
 - 
 
 - 
 
- 
- 
Field Detail
- 
SOLUTION_MODELS
public static final String SOLUTION_MODELS
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
Solution
public Solution(SolutionDescriptor descriptor, @Nullable IFile file)
 
 - 
 
- 
Method Detail
- 
getModuleDescriptor
@NotNull public SolutionDescriptor getModuleDescriptor()
- Overrides:
 getModuleDescriptorin classAbstractModule
 
- 
doSetModuleDescriptor
protected void doSetModuleDescriptor(ModuleDescriptor moduleDescriptor)
- Overrides:
 doSetModuleDescriptorin classAbstractModule
 
- 
setUpdateBootstrapSolutions
public void setUpdateBootstrapSolutions(boolean b)
 
- 
save
public void save()
- Specified by:
 savein interfaceEditableSModule- Overrides:
 savein classAbstractModule
 
- 
isBootstrapSolution
public static boolean isBootstrapSolution(SModuleReference ref)
 
- 
updateModelsSet
public void updateModelsSet()
- Overrides:
 updateModelsSetin classAbstractModule
 
- 
toString
public String toString()
- Overrides:
 toStringin classAbstractModule
 
- 
getKind
public SolutionKind getKind()
 
- 
collectMandatoryFacetTypes
protected void collectMandatoryFacetTypes(Set<String> types)
Description copied from class:AbstractModuleFor the time being, MPS enforces certain facets for modules (e.g. Java facet is essential for classloading mechanism). As we move forward with facets story, we likely respect actual facets for the module (e.g. would force Java facet on module creation only) Need to ensure classloading could deal with modules without Java facet, then can drop these mandatory facets altogether- Overrides:
 collectMandatoryFacetTypesin classAbstractModule
 
- 
canLoadClasses
public boolean canLoadClasses()
Description copied from interface:ReloadableModuleFor some subclasses it is possible to disable class loading forReloadableModule. E.g. solution without idea/mps facet cannot load classes- See Also:
 Solution
 
 - 
 
 -