mirror of
https://github.com/DanilaFe/abacus
synced 2024-11-04 18:08:31 -08:00
Add the plugin manager to the main. Abacus class.
This commit is contained in:
parent
989ac80bf4
commit
08a462b8f3
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user