add method to remove project
[jSite2.git] / src / net / pterodactylus / jsite / project / ProjectManager.java
index 5434842..4480faa 100644 (file)
@@ -219,6 +219,21 @@ public class ProjectManager implements PropertyChangeListener {
                return project;
        }
 
+       /**
+        * Removes the given project.
+        * 
+        * @param project
+        *            The project to remove
+        */
+       public void removeProject(Project project) {
+               projects.remove(project);
+               try {
+                       save();
+               } catch (IOException ioe1) {
+                       /* ignore. */
+               }
+       }
+
        //
        // INTERFACE PropertyChangeListener
        //