import net.pterodactylus.jsite.core.RequestManager;
import net.pterodactylus.jsite.gui.SwingInterface;
import net.pterodactylus.jsite.core.RequestManager;
import net.pterodactylus.jsite.gui.SwingInterface;
CoreImpl core = new CoreImpl();
String configDirectory = System.getProperty("user.home") + File.separator + ".jSite";
CoreImpl core = new CoreImpl();
String configDirectory = System.getProperty("user.home") + File.separator + ".jSite";
ProjectManager projectManager = new ProjectManager(configDirectory);
core.setProjectManager(projectManager);
projectManager.setNodeManager(nodeManager);
ProjectManager projectManager = new ProjectManager(configDirectory);
core.setProjectManager(projectManager);
projectManager.setNodeManager(nodeManager);
- RequestManager requestManager = new RequestManager();
- core.setRequestManager(requestManager);
- nodeManager.addNodeListener(requestManager);
- requestManager.setNodeManager(nodeManager);
- requestManager.addRequestListener(core);
-
SwingInterface swingInterface = new SwingInterface(core, configDirectory);
core.addCoreListener(swingInterface);
Logging.addLoggingListener(swingInterface);
SwingInterface swingInterface = new SwingInterface(core, configDirectory);
core.addCoreListener(swingInterface);
Logging.addLoggingListener(swingInterface);
/**
* Tries to load the class with the given name and includes the look & feel
* in the UIManager, if it exists.
/**
* Tries to load the class with the given name and includes the look & feel
* in the UIManager, if it exists.
* @see UIManager#setInstalledLookAndFeels(LookAndFeelInfo[])
* @param lookAndFeelInfos
* The look & feels to add
*/
private void addLookAndFeels(LookAndFeelInfo... lookAndFeelInfos) {
List<LookAndFeelInfo> allLookAndFeelInfos = new ArrayList<LookAndFeelInfo>(Arrays.asList(UIManager.getInstalledLookAndFeels()));
* @see UIManager#setInstalledLookAndFeels(LookAndFeelInfo[])
* @param lookAndFeelInfos
* The look & feels to add
*/
private void addLookAndFeels(LookAndFeelInfo... lookAndFeelInfos) {
List<LookAndFeelInfo> allLookAndFeelInfos = new ArrayList<LookAndFeelInfo>(Arrays.asList(UIManager.getInstalledLookAndFeels()));