Class AbstractEnvironment

    • Constructor Detail

      • AbstractEnvironment

        protected AbstractEnvironment​(Platform mpsPlatform)
    • Method Detail

      • getPlatform

        public Platform getPlatform()
        Specified by:
        getPlatform in interface Environment
        Returns:
        MPS (its platform aspect) of this tooling environment, not null when initialized.
      • closeProject

        public void closeProject​(@NotNull
                                 Project project)
        Description copied from interface: Environment
        Discards previously opened project. Environment does its best to close the project but may choose to ignore request in certain scenarions (like in-process test execution, when closing an active project may affect user experience)
        Specified by:
        closeProject in interface Environment
        Parameters:
        project - an instance obtained from Environment.openProject(java.io.File)
      • dispose

        public void dispose()
        Description copied from interface: Environment
        disposes the environment for real, does not consider ref counts
        Specified by:
        dispose in interface Environment
      • flushAllEvents

        public void flushAllEvents()
        Description copied from interface: Environment
        flushes all #invokeAndLater calls and all ModelAccess event queue if needed
        Specified by:
        flushAllEvents in interface Environment