Class ModelGenerationStatusManager

    • Method Detail

      • getInstance

        @Deprecated
        public static ModelGenerationStatusManager getInstance()
        Deprecated.
        Returns:
        Use CoreComponent instance available through respective ComponentHost. It's generator component plugin that supplies instance, and one can use MPSCoreComponents from IDEA project/application components, or MPSProject#getComponent(Class) to access it. XXX there's single use in MPS left, MPSMakeMediator in idea plugin, which needs to be refactored with respect to GenerationPathsController (which changes location of 'generated' files, and the question is what location we shall use in MPSMakeMediator.collectResources() then). There are uses in mbeddr.
      • generationRequired

        public boolean generationRequired​(SModel md)
      • invalidateData

        public void invalidateData​(Iterable<? extends SModel> models)
      • invalidateData

        public void invalidateData​(IFile cacheFile)
        PROVISIONAL, IMPLEMENTATION API, FOR USE SOLELY FROM FS NOTIFICATION CODE At the moment, there's no effective way to listen to file changes through MPS VFS API other than attaching a listener to specific file To listen to changes (as well as additions and removals) of a fixed file, we rely on IDEA's (platform's) mechanism now. This method is an entry point for external (effective) file change notification. NOTE, if nobody have asked for a status of a model with the given cacheFile, no notifications would get dispatched.