Package jetbrains.mps.generator
Class CustomGenerationModuleFacet
- java.lang.Object
 - 
- jetbrains.mps.extapi.module.ModuleFacetBase
 - 
- jetbrains.mps.generator.CustomGenerationModuleFacet
 
 
 
- 
- All Implemented Interfaces:
 ModelGenerationPlan.Provider,SModuleFacet
public class CustomGenerationModuleFacet extends ModuleFacetBase implements ModelGenerationPlan.Provider
- Since:
 - 3.3
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringFACET_TYPE 
- 
Constructor Summary
Constructors Constructor Description CustomGenerationModuleFacet() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFacetPresentation()ModelGenerationPlangetPlan(SModel model)SModelReferencegetPlanModelReference()voidload(Memento memento)Allows the model root to read its previously saved configuration informationvoidsave(Memento memento)Gives the module facet the opportunity to persist into the supplied memento whatever configuration information may be needed to restore the models in the future.voidsetPlanModelReference(SModelReference modelRef)- 
Methods inherited from class jetbrains.mps.extapi.module.ModuleFacetBase
attach, checkNotRegistered, dispose, getFacetType, getModule, isRegistered, setModule 
 - 
 
 - 
 
- 
- 
Field Detail
- 
FACET_TYPE
public static final String FACET_TYPE
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getFacetPresentation
public String getFacetPresentation()
- Overrides:
 getFacetPresentationin classModuleFacetBase
 
- 
getPlan
@Nullable public ModelGenerationPlan getPlan(@NotNull SModel model)
- Specified by:
 getPlanin interfaceModelGenerationPlan.Provider- Parameters:
 model- what we need plan for.- Returns:
 nullif this provider could not give a plan for the model
 
- 
getPlanModelReference
@Nullable public SModelReference getPlanModelReference()
 
- 
setPlanModelReference
public void setPlanModelReference(@Nullable SModelReference modelRef)
 
- 
load
public void load(Memento memento)
Description copied from interface:SModuleFacetAllows the model root to read its previously saved configuration information- Specified by:
 loadin interfaceSModuleFacet- Overrides:
 loadin classModuleFacetBase
 
- 
save
public void save(Memento memento)
Description copied from interface:SModuleFacetGives the module facet the opportunity to persist into the supplied memento whatever configuration information may be needed to restore the models in the future.- Specified by:
 savein interfaceSModuleFacet- Overrides:
 savein classModuleFacetBase
 
 - 
 
 -