Class Project

    • Method Detail

      • getComponent

        public abstract <T> T getComponent​(Class<T> t)
        Description copied from interface: IProject
        Generic extension mechanism
        Specified by:
        getComponent in interface IProject
        Returns:
        component instance or null if no extension of specified kind found.
      • getProjectFile

        @Deprecated
        public File getProjectFile()
        Deprecated.
        the project is not necessarily backed up by file. Left for compatibility
        See Also:
        FileBasedProject
      • getModules

        @NotNull
        @Deprecated
        public final Iterable<? extends SModule> getModules()
        Deprecated.
        use {@link #getProjectModules)} instead AP fixme : why to return Iterable? isn't it easier to give out a collection, e.g. a list?
      • getProjectModulesWithGenerators

        @NotNull
        public final List<SModule> getProjectModulesWithGenerators()
      • isProjectModule

        public final boolean isProjectModule​(@NotNull
                                             SModule module)
      • getProjectModules

        @NotNull
        public final <T extends SModuleList<T> getProjectModules​(Class<T> moduleClass)
        Note, call #getProjectModules(SModule.class) is ambiguous, as it doesn't return generators that live under a project's language despite the fact Generator is instaoce of SModule, indeed.
      • isHidden

        public final boolean isHidden()
        Specified by:
        isHidden in interface MPSModuleOwner
        Returns:
        the 'hidden' status for the different kinds of owners. visibility has strict definition here, however I suppose that the owner is hidden implicates that its modules are not visible to a user (module properties dialog, etc.).
      • dispose

        public void dispose()
        closes and disposes the project
      • isDisposed

        public boolean isDisposed()