Interface ILibraryRegistry

    • Method Detail

      • getLibrary

        LibraryDescriptor getLibrary​(IDtProject dtProject)
        Returns the library descriptor based on which this project was created or updated.
        Parameters:
        dtProject - the DT project to get the library descriptor for, cannot be null
        Returns:
        the library descriptor based on which this project was created or updated or null
      • getProjects

        Collection<IDtProject> getProjects​(LibraryDescriptor libraryDescriptor)
        Returns the collection of all projects which were created or updated based on the specified library.
        Parameters:
        libraryDescriptor - the specified library descriptor, cannot be null
        Returns:
        the collection of projects, may be empty, never null
      • getClosedProjects

        Collection<org.eclipse.core.resources.IProject> getClosedProjects​(LibraryDescriptor libraryDescriptor)
        Returns the collection of all closed projects which were created or updated based on the specified library.
        Parameters:
        libraryDescriptor - the specified library descriptor, cannot be null
        Returns:
        the collection of closed projects, may be empty, never null
      • setLibrary

        void setLibrary​(IDtProject dtProject,
                        LibraryDescriptor libraryDescriptor)
        Sets the library descriptor based on which the specified project was created or updated (or unsets if the library descriptor is null).
        Parameters:
        dtProject - the DT project to set the library descriptor for, cannot be null
        libraryDescriptor - the library descriptor to set, may be null