From ed4e59490c6f91adcd0fdbc31f32684fdf6224eb Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 27 May 2008 20:39:08 +0200 Subject: [PATCH] add method to remove project --- src/net/pterodactylus/jsite/project/ProjectManager.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 // -- 2.7.4