Class ProjectsManager
java.lang.Object
org.libreoffice.ide.eclipse.core.model.ProjectsManager
Singleton mapping the UNO-IDL projects to their name to provide an easy access to UNO-IDL projects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddProject(org.eclipse.core.resources.IProject pProject) Add a project that isn't already loaded.static voidaddProject(IUnoidlProject pProject) Adds a project to the manager only if there is no other project with the same name.static voiddispose()This method will release all the stored project references.static IUnoidlProjectgetProject(String name) Returns the unoidl project with the given name, if it exists.static IUnoidlProject[]static voidload()Private constructor for the singleton.static voidremoveProject(String name) Removes a project from the manager.
-
Constructor Details
-
ProjectsManager
public ProjectsManager()
-
-
Method Details
-
dispose
public static void dispose()This method will release all the stored project references. There is no need to call this method in any other place than the plugin stop method. -
getProject
Returns the unoidl project with the given name, if it exists. Otherwisenullis returned- Parameters:
name- the name of the project to find- Returns:
- the found project.
-
addProject
public static void addProject(org.eclipse.core.resources.IProject pProject) Add a project that isn't already loaded.- Parameters:
pProject- the project to load and add
-
addProject
Adds a project to the manager only if there is no other project with the same name.- Parameters:
pProject- the project to add
-
removeProject
Removes a project from the manager.- Parameters:
name- the name of the project to remove
-
getProjects
- Returns:
- an array containing all the defined UNO projects
-
load
public static void load()Private constructor for the singleton. Its charge is to load all the existing UNO-IDL projects
-