add node manager to project manager
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 16 May 2008 16:14:38 +0000 (16:14 +0000)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 16 May 2008 16:14:38 +0000 (16:14 +0000)
git-svn-id: http://trooper/svn/projects/jSite/trunk@903 c3eda9e8-030b-0410-8277-bc7414b0a119

src/net/pterodactylus/jsite/main/Main.java

index be543eb..0c157a8 100644 (file)
@@ -56,13 +56,14 @@ public class Main {
 
                String configDirectory = System.getProperty("user.home") + File.separator + ".jSite";
 
-               ProjectManager projectManager = new ProjectManager(configDirectory);
-               core.setProjectManager(projectManager);
-
                NodeManager nodeManager = new NodeManager("jSite-" + Version.getVersion(), configDirectory);
                core.setNodeManager(nodeManager);
                nodeManager.addNodeListener(core);
 
+               ProjectManager projectManager = new ProjectManager(configDirectory);
+               core.setProjectManager(projectManager);
+               projectManager.setNodeManager(nodeManager);
+
                RequestManager requestManager = new RequestManager();
                core.setRequestManager(requestManager);
                nodeManager.addNodeListener(requestManager);