From: David ‘Bombe’ Roden Date: Tue, 3 Jun 2008 21:16:57 +0000 (+0200) Subject: make setNode(Node) public X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=9ed381297cca35dfdab072643bdb38444cfd9779;p=jSite2.git make setNode(Node) public --- 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); } //