projects
/
jkeytool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
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
diff --git
a/src/net/pterodactylus/jkeytool/gui/swing/SwingInterface.java
b/src/net/pterodactylus/jkeytool/gui/swing/SwingInterface.java
index
388846d
..
4d287d9
100644
(file)
--- a/
src/net/pterodactylus/jkeytool/gui/swing/SwingInterface.java
+++ b/
src/net/pterodactylus/jkeytool/gui/swing/SwingInterface.java
@@
-22,6
+22,7
@@
package net.pterodactylus.jkeytool.gui.swing;
import java.io.File;
import java.security.KeyStore;
import java.io.File;
import java.security.KeyStore;
+import net.pterodactylus.jkeytool.core.Core;
import net.pterodactylus.jkeytool.gui.Interface;
/**
import net.pterodactylus.jkeytool.gui.Interface;
/**
@@
-31,11
+32,24
@@
import net.pterodactylus.jkeytool.gui.Interface;
*/
public class SwingInterface implements Interface {
*/
public class SwingInterface implements Interface {
+ /** The core to control. */
+ private Core core;
+
//
// INTERFACE Interface
//
/**
//
// 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() {
* {@inheritDoc}
*/
public void start() {