Add Interface.setCore(Core) method to set the core that is controlled by the interface.
[jkeytool.git] / src / net / pterodactylus / jkeytool / gui / swing / SwingInterface.java
index 388846d..4d287d9 100644 (file)
@@ -22,6 +22,7 @@ package net.pterodactylus.jkeytool.gui.swing;
 import java.io.File;
 import java.security.KeyStore;
 
+import net.pterodactylus.jkeytool.core.Core;
 import net.pterodactylus.jkeytool.gui.Interface;
 
 /**
@@ -31,11 +32,24 @@ import net.pterodactylus.jkeytool.gui.Interface;
  */
 public class SwingInterface implements Interface {
 
+       /** The core to control. */
+       private Core core;
+
        //
        // INTERFACE Interface
        //
 
        /**
+        * Sets the core to control.
+        *
+        * @param core
+        *            The core to control
+        */
+       public void setCore(Core core) {
+               this.core = core;
+       }
+
+       /**
         * {@inheritDoc}
         */
        public void start() {