1
0
mirror of https://github.com/DanilaFe/abacus synced 2024-12-23 07:50:09 -08:00

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 0b5c72d274
commit c14a4ceb93

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);
}