From c14a4ceb9329564f247034684fd7cf70cc2f86e2 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Tue, 25 Jul 2017 21:52:23 -0700 Subject: [PATCH] Add the plugin manager to the main. Abacus class. --- src/org/nwapw/abacus/Abacus.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/org/nwapw/abacus/Abacus.java b/src/org/nwapw/abacus/Abacus.java index 74441d3..7150c4e 100644 --- a/src/org/nwapw/abacus/Abacus.java +++ b/src/org/nwapw/abacus/Abacus.java @@ -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); }