Package com._1c.g5.v8.dt.core.library
Interface ILibraryRegistry
-
- All Superinterfaces:
IManagedService
public interface ILibraryRegistry extends IManagedService
The libraries and projects association registry.
-
-
Field Summary
Fields Modifier and Type Field Description static String
SERVICE_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.LibraryDescriptor
getLibrary(IDtProject dtProject)
Returns the library descriptor based on which this project was created or updated.Collection<IDtProject>
getProjects(LibraryDescriptor libraryDescriptor)
Returns the collection of all projects which were created or updated based on the specified library.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 isnull
).-
Methods inherited from interface com._1c.g5.wiring.IManagedService
activate, deactivate
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
-
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 benull
- 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 benull
- 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 benull
- 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 isnull
).- Parameters:
dtProject
- the DT project to set the library descriptor for, cannot benull
libraryDescriptor
- the library descriptor to set, may benull
-
-