From: David ‘Bombe’ Roden Date: Tue, 27 May 2008 18:39:08 +0000 (+0200) Subject: add method to remove project X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=ed4e59490c6f91adcd0fdbc31f32684fdf6224eb;p=jSite2.git add method to remove project --- diff --git a/src/net/pterodactylus/jsite/project/ProjectManager.java b/src/net/pterodactylus/jsite/project/ProjectManager.java index 5434842..4480faa 100644 --- a/src/net/pterodactylus/jsite/project/ProjectManager.java +++ b/src/net/pterodactylus/jsite/project/ProjectManager.java @@ -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 //