mirror of
https://github.com/DanilaFe/abacus
synced 2024-12-23 16:00:09 -08:00
Add the plugin manager to the main. Abacus class.
This commit is contained in:
parent
0b5c72d274
commit
c14a4ceb93
|
@ -1,5 +1,7 @@
|
||||||
package org.nwapw.abacus;
|
package org.nwapw.abacus;
|
||||||
|
|
||||||
|
import org.nwapw.abacus.plugin.PluginManager;
|
||||||
|
import org.nwapw.abacus.plugin.StandardPlugin;
|
||||||
import org.nwapw.abacus.window.Window;
|
import org.nwapw.abacus.window.Window;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
|
@ -7,6 +9,7 @@ import javax.swing.*;
|
||||||
public class Abacus {
|
public class Abacus {
|
||||||
|
|
||||||
private Window mainUi;
|
private Window mainUi;
|
||||||
|
private PluginManager manager;
|
||||||
|
|
||||||
public Abacus(){
|
public Abacus(){
|
||||||
init();
|
init();
|
||||||
|
@ -18,6 +21,8 @@ public class Abacus {
|
||||||
} catch (ClassNotFoundException | InstantiationException | UnsupportedLookAndFeelException | IllegalAccessException e) {
|
} catch (ClassNotFoundException | InstantiationException | UnsupportedLookAndFeelException | IllegalAccessException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
manager = new PluginManager();
|
||||||
|
manager.addInstantiated(new StandardPlugin(manager));
|
||||||
mainUi = new Window();
|
mainUi = new Window();
|
||||||
mainUi.setVisible(true);
|
mainUi.setVisible(true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user