Package jetbrains.mps.smodel
Class SModelFileTracker
- java.lang.Object
 - 
- jetbrains.mps.smodel.SModelFileTracker
 
 
- 
public class SModelFileTracker extends Object
Bridge VFS and Model worlds in MPS. Capable to tellSModelfor aIFileModels are tied to repository, same file may get loaded into few distinct repositories, that's why instances of the tracker are per-repository. IMPLEMENTATION: now it tracks all model files andanswersquickly. Do we care to do it really fast at expense of huge (there are thousands of models in a project) memory footprint? FIXME Shall measure footprint first, then re-consider XXX CoreComponent: what if we introduce notion of 'services' for an SRepository, so that there's no need to use static accessor (getInstance(SRepo))? i.e. instead we'd have smth like SRepo.getService(SModelFileTracker.class) 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSModelFileTracker.Plug 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SModelfindModel(IFile modelFile)static SModelFileTrackergetInstance(SRepository repository) 
 - 
 
- 
- 
Method Detail
- 
getInstance
@NotNull public static SModelFileTracker getInstance(SRepository repository)
 
 - 
 
 -