Class ProjectsImpl

  • All Implemented Interfaces:
    Projects

    public class ProjectsImpl
    extends Object
    implements Projects
    Author:
    Mathieu Bastian
    • Constructor Detail

      • ProjectsImpl

        public ProjectsImpl()
    • Method Detail

      • addProject

        public void addProject​(ProjectImpl project)
      • containsProject

        public boolean containsProject​(Project project)
      • getProjectByIdentifier

        public ProjectImpl getProjectByIdentifier​(String identifier)
      • addOrReplaceProject

        public void addOrReplaceProject​(ProjectImpl project)
      • removeProject

        public void removeProject​(ProjectImpl project)
      • getProjects

        public ProjectImpl[] getProjects()
        Description copied from interface: Projects
        Returns an array of all projects.
        Specified by:
        getProjects in interface Projects
        Returns:
        project array
      • getCurrentProject

        public ProjectImpl getCurrentProject()
        Description copied from interface: Projects
        Returns the current project..
        Specified by:
        getCurrentProject in interface Projects
        Returns:
        current project or null if missing
      • setCurrentProject

        public void setCurrentProject​(ProjectImpl currentProject)
      • hasCurrentProject

        public boolean hasCurrentProject()
        Description copied from interface: Projects
        Returns true if a project is selected.
        Specified by:
        hasCurrentProject in interface Projects
        Returns:
        true if current project, false otherwise
      • closeCurrentProject

        public void closeCurrentProject()
      • nextUntitledProjectName

        protected String nextUntitledProjectName()