import net.pterodactylus.jsite.core.NodeManager;
import net.pterodactylus.jsite.core.ProjectManager;
import net.pterodactylus.jsite.gui.SwingInterface;
+import net.pterodactylus.util.logging.Logging;
/**
* Main class that is called by the VM.
* Starts the core and the default {@link SwingInterface}.
*/
private void start() {
+ Logging.setup("jSite");
+
CoreImpl core = new CoreImpl();
String configDirectory = System.getProperty("user.home") + File.separator + ".jSite";
NodeManager nodeManager = new NodeManager("jSite-" + Version.getVersion(), configDirectory);
core.setNodeManager(nodeManager);
+ nodeManager.addNodeListener(core);
SwingInterface swingInterface = new SwingInterface(core, configDirectory);
core.addCoreListener(swingInterface);
- swingInterface.start();
+ Logging.addLoggingListener(swingInterface);
core.start();
}