Class DevkitDescriptor
- java.lang.Object
 - 
- jetbrains.mps.project.structure.modules.ModuleDescriptor
 - 
- jetbrains.mps.project.structure.modules.DevkitDescriptor
 
 
 
- 
- All Implemented Interfaces:
 Copyable<ModuleDescriptor>,CopyableDescriptor<ModuleDescriptor>
public class DevkitDescriptor extends ModuleDescriptor
 
- 
- 
Constructor Summary
Constructors Constructor Description DevkitDescriptor() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SModelReferencegetAssociatedGenPlan()This is provisional code while we investigate approaches how to associate custom generation plans with a model.Set<SModuleReference>getExportedLanguages()Set<SModuleReference>getExportedSolutions()Set<SModuleReference>getExtendedDevkits()protected intgetHeaderMarker()voidload(ModelInputStream stream)voidsave(ModelOutputStream stream)voidsetAssociatedPlan(SModelReference planModel)booleanupdateModuleRefs(SRepository repository)- 
Methods inherited from class jetbrains.mps.project.structure.modules.ModuleDescriptor
addFacetDescriptor, copy, copy0, getAdditionalJavaStubPaths, getCompileInMPS, getDependencies, getDependencyVersions, getDeploymentDescriptor, getId, getLanguageVersions, getLoadException, getModelRootDescriptors, getModuleFacetDescriptors, getModuleReference, getModuleVersion, getNamespace, getSourcePaths, getTimestamp, getUsedDevkits, getUsedLanguages, hasDependencyVersions, hasLanguageVersions, isUseTransientOutput, needsExternalIdeaCompile, removeFacetDescriptor, setDeploymentDescriptor, setHasDependencyVersions, setHasLanguageVersions, setId, setLoadException, setModuleVersion, setNamespace, setNeedsExternalIdeaCompile, setTimestamp, setUseTransientOutput, updateFacetDescriptor, updateModelRefs 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getExportedLanguages
public Set<SModuleReference> getExportedLanguages()
 
- 
getExportedSolutions
public Set<SModuleReference> getExportedSolutions()
 
- 
getExtendedDevkits
public Set<SModuleReference> getExtendedDevkits()
 
- 
updateModuleRefs
public boolean updateModuleRefs(SRepository repository)
- Overrides:
 updateModuleRefsin classModuleDescriptor
 
- 
getHeaderMarker
protected int getHeaderMarker()
- Overrides:
 getHeaderMarkerin classModuleDescriptor
 
- 
getAssociatedGenPlan
@Nullable public SModelReference getAssociatedGenPlan()
This is provisional code while we investigate approaches how to associate custom generation plans with a model. We've triedCustomGenerationModuleFacetwhich is not quite satisfying, as we need to give Language Designer control over plan activation, and less (no) burden for Language Practitioner to pick a plan for his model. XXX It's indeed a hack to return model reference here, but it's the only way to move forward quickly. I can't afford to spend time now to build a facet mechanism for devkits, or to introduce GenerationPlanIdentity to reference deployed plans which could be kept here (and supplied from extension point or any other similar mechanism). At the end of the day, there'd be some compiled representation of the plan, we we can identify and assign here (if we stick to plans at devkits approach, which is not yet 100% sure thing). 
- 
setAssociatedPlan
public void setAssociatedPlan(@Nullable SModelReference planModel)
 
- 
save
public void save(ModelOutputStream stream) throws IOException
- Overrides:
 savein classModuleDescriptor- Throws:
 IOException
 
- 
load
public void load(ModelInputStream stream) throws IOException
- Overrides:
 loadin classModuleDescriptor- Throws:
 IOException
 
 - 
 
 -