From 9ed381297cca35dfdab072643bdb38444cfd9779 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 3 Jun 2008 23:16:57 +0200 Subject: [PATCH] make setNode(Node) public --- src/net/pterodactylus/jsite/core/Project.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/net/pterodactylus/jsite/core/Project.java b/src/net/pterodactylus/jsite/core/Project.java index 1301236..d250af1 100644 --- a/src/net/pterodactylus/jsite/core/Project.java +++ b/src/net/pterodactylus/jsite/core/Project.java @@ -27,7 +27,6 @@ import java.util.HashMap; import java.util.List; import java.util.Map; -import net.pterodactylus.jsite.core.Node; import net.pterodactylus.jsite.util.IdGenerator; import net.pterodactylus.util.beans.AbstractBean; import net.pterodactylus.util.number.Hex; @@ -58,6 +57,9 @@ public class Project extends AbstractBean { /** Name of the “default file” property. */ public static final String PROPERTY_DEFAULT_FILE = "defaultFile"; + /** Name of the “node” property. */ + public static final String PROPERTY_NODE = "node"; + /** Internal ID. */ private String id; @@ -391,8 +393,10 @@ public class Project extends AbstractBean { * @param node * The node to insert this project to */ - void setNode(Node node) { + public void setNode(Node node) { + Node oldNode = this.node; this.node = node; + fireIfPropertyChanged(PROPERTY_NODE, oldNode, node); } // -- 2.7.4