Class ProjectsManager

java.lang.Object
org.libreoffice.ide.eclipse.core.model.ProjectsManager

public class ProjectsManager extends Object
Singleton mapping the UNO-IDL projects to their name to provide an easy access to UNO-IDL projects.
  • 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

      public static IUnoidlProject getProject(String name)
      Returns the unoidl project with the given name, if it exists. Otherwise null is 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

      public static void addProject(IUnoidlProject pProject)
      Adds a project to the manager only if there is no other project with the same name.
      Parameters:
      pProject - the project to add
    • removeProject

      public static void removeProject(String name)
      Removes a project from the manager.
      Parameters:
      name - the name of the project to remove
    • getProjects

      public static IUnoidlProject[] 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