Add the plugin manager to the main. Abacus class.

This commit is contained in:
Danila Fedorin 2017-07-25 21:52:23 -07:00
parent 989ac80bf4
commit 08a462b8f3
1 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,7 @@
package org.nwapw.abacus;
import org.nwapw.abacus.plugin.PluginManager;
import org.nwapw.abacus.plugin.StandardPlugin;
import org.nwapw.abacus.window.Window;
import javax.swing.*;
@ -7,6 +9,7 @@ import javax.swing.*;
public class Abacus {
private Window mainUi;
private PluginManager manager;
public Abacus(){
init();
@ -18,6 +21,8 @@ public class Abacus {
} catch (ClassNotFoundException | InstantiationException | UnsupportedLookAndFeelException | IllegalAccessException e) {
e.printStackTrace();
}
manager = new PluginManager();
manager.addInstantiated(new StandardPlugin(manager));
mainUi = new Window();
mainUi.setVisible(true);
}