Package jetbrains.mps.project
Class SModuleOperations
- java.lang.Object
 - 
- jetbrains.mps.project.SModuleOperations
 
 
- 
public class SModuleOperations extends Object
 
- 
- 
Constructor Summary
Constructors Constructor Description SModuleOperations() 
- 
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static EditableSModelcreateModelWithAdjustments(String name, ModelRoot root)static EditableSModelcreateModelWithAdjustments(String name, ModelRoot root, ModelFactoryType modelFactoryType)Deprecated.to become private, don't usestatic Set<String>getAllSourcePaths(SModule module)static JavaModuleFacetgetJavaFacet(SModule module)static StringgetOutputPathFor(SModel model)Deprecated.static Collection<IFile>getOutputRoots(SModule module)Deprecated.This operation knows about output roots ofJavaModuleFacetandTestsFacetonly.static ProjectgetProjectForModule(SModule module)static booleanisCompileInIdea(SModule module)static booleanisCompileInMps(SModule module)static booleanneedReloading(AbstractModule module)static voidreloadFromDisk(AbstractModule module)Deprecated.module provider (library, project, whatever) has to deal with module reload, this helper complicates matters more than resolves any. 
 - 
 
- 
- 
Method Detail
- 
getOutputPathFor
@Deprecated public static String getOutputPathFor(SModel model)
Deprecated.useGenerationTargetFacet.getOutputLocation(SModel)orJavaModuleFacet.getOutputRoot(). Even#getOutputRoot(SModel)is much better as it (a) deals with IFile (b) hints it's root, not model-specific location 
- 
getOutputRoots
@Deprecated public static Collection<IFile> getOutputRoots(@NotNull SModule module)
Deprecated.This operation knows about output roots ofJavaModuleFacetandTestsFacetonly. Locations of any otherGenerationTargetFacetare ignored. There's only 1 use in MPS. Client code shall not assume there's single output root for a module, there could be multiple outputs, specified per model.- Returns:
 - all locations where generated files (including auxiliary model streams, files with hashes and dependencies) of the module could be found.
 
 
- 
getJavaFacet
@NotNull public static JavaModuleFacet getJavaFacet(@NotNull SModule module)
 
- 
isCompileInMps
public static boolean isCompileInMps(SModule module)
 
- 
isCompileInIdea
public static boolean isCompileInIdea(SModule module)
- Parameters:
 module- non-null- Returns:
 - true iff module has java facet, doesn't require MPS compilation and _expilictly_ demands external compilation with IDEA
 
 
- 
createModelWithAdjustments
@Nullable public static EditableSModel createModelWithAdjustments(@NotNull String name, @NotNull ModelRoot root)
 
- 
createModelWithAdjustments
@NotNull @Deprecated public static EditableSModel createModelWithAdjustments(@NotNull String name, @NotNull ModelRoot root, @Nullable ModelFactoryType modelFactoryType) throws ModelCannotBeCreatedException
Deprecated.to become private, don't use- Throws:
 ModelCannotBeCreatedException
 
- 
needReloading
public static boolean needReloading(AbstractModule module)
 
- 
reloadFromDisk
@Deprecated public static void reloadFromDisk(@NotNull AbstractModule module)
Deprecated.module provider (library, project, whatever) has to deal with module reload, this helper complicates matters more than resolves any. Once it's gone, AM.loadDescriptor is no longer needed, as well as MM.loadModuleHandle() Reads module from file and eventually redeploys it (when CLManager triggers refresh) 
 - 
 
 -