Package jetbrains.mps.smodel
Class SModelLegacy
- java.lang.Object
 - 
- jetbrains.mps.smodel.SModelLegacy
 
 
- 
public final class SModelLegacy extends Object
Auxiliary methods that used to constitute API of smodel.SModel and we no longer want to be there. There's no need to keep old code along with the new one in smodel.SModel as it makes the class way too complicated and hard to maintain. Hence, all the stuff deemed legacy moves here, and uses of that API simply get changed to wrap contemporary model withSModelLegacyinstance:SModel m = ...; SModuleReference r = ...; m.addLanguage(r) --> new SModelLegacy(m).addLanguage(r);
Note, use of SModelLegacy is just a quick migration step, it's advised to replace legacy calls with modern alternatives. 
- 
- 
Constructor Summary
Constructors Constructor Description SModelLegacy(SModel model) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEngagedOnGenerationLanguage(SModuleReference ref)voidaddLanguage(Language language)voidaddLanguage(SModuleReference ref)voidaddModelImport(SModelReference ref, boolean firstVersion)List<SModuleReference>engagedOnGenerationLanguages()List<SModuleReference>importedLanguages()voidremoveEngagedOnGenerationLanguage(SModuleReference ref) 
 - 
 
- 
- 
Method Detail
- 
addLanguage
public void addLanguage(SModuleReference ref)
 
- 
addLanguage
public void addLanguage(Language language)
 
- 
addModelImport
public void addModelImport(SModelReference ref, boolean firstVersion)
 
- 
importedLanguages
public List<SModuleReference> importedLanguages()
 
- 
engagedOnGenerationLanguages
public List<SModuleReference> engagedOnGenerationLanguages()
 
- 
addEngagedOnGenerationLanguage
public void addEngagedOnGenerationLanguage(SModuleReference ref)
 
- 
removeEngagedOnGenerationLanguage
public void removeEngagedOnGenerationLanguage(SModuleReference ref)
 
 - 
 
 -