Class SModelFileTracker


  • public class SModelFileTracker
    extends Object
    Bridge VFS and Model worlds in MPS. Capable to tell SModel for a IFile Models 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 and answers quickly. 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)