X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Fjsite%2Fgui%2FSwingInterface.java;h=c79c37dfb6cdba60ac49ac90c0c46604ee4f247b;hb=dc08ba62be9bfe0fe0c55831f8cbba785c37881c;hp=e316ab1f3bd84093da99ded997679b844aeee053;hpb=91dc492d79ef00a739cdfc1e42f5cbeea1963afa;p=jSite2.git diff --git a/src/net/pterodactylus/jsite/gui/SwingInterface.java b/src/net/pterodactylus/jsite/gui/SwingInterface.java index e316ab1..c79c37d 100644 --- a/src/net/pterodactylus/jsite/gui/SwingInterface.java +++ b/src/net/pterodactylus/jsite/gui/SwingInterface.java @@ -40,7 +40,6 @@ import java.util.logging.Level; import java.util.logging.LogRecord; import java.util.logging.Logger; -import javax.swing.Action; import javax.swing.JOptionPane; import javax.swing.UIManager; import javax.swing.UnsupportedLookAndFeelException; @@ -349,6 +348,15 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh return nodeList; } + /** + * Returns the thread pool used for off-thread processes. + * + * @return The thread pool + */ + Executor getThreadPool() { + return threadPool; + } + // // ACTIONS // @@ -943,11 +951,7 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh * {@inheritDoc} */ public void propertyChange(PropertyChangeEvent propertyChangeEvent) { - if (propertyChangeEvent.getSource() instanceof Node) { - Node changedNode = (Node) propertyChangeEvent.getSource(); - nodeConnectActions.get(changedNode).putValue(Action.NAME, changedNode.getName()); - nodeDisconnectActions.get(changedNode).putValue(Action.NAME, changedNode.getName()); - } + /* do not react to anything (yet). */ } }