FELIX-159
The NEW_NODE_READY PropertyChangeEvent now contains the gateway identification s
tring. Can be used by Plugins to identify the managed gateway.
git-svn-id: https://svn.apache.org/repos/asf/incubator/felix/trunk@531982 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/mosgi.console.gui/src/main/java/org/apache/felix/mosgi/console/gui/NodePanel.java b/mosgi.console.gui/src/main/java/org/apache/felix/mosgi/console/gui/NodePanel.java
index c583b1d..6c60c8e 100644
--- a/mosgi.console.gui/src/main/java/org/apache/felix/mosgi/console/gui/NodePanel.java
+++ b/mosgi.console.gui/src/main/java/org/apache/felix/mosgi/console/gui/NodePanel.java
@@ -93,6 +93,7 @@
}else if (event.getPropertyName().equals(Plugin.NEW_NODE_SELECTED)) {
/* Update the tabs (Plugin) in the JTabbedPane (NodePanel) */
MBeanServerConnection mbsc = (MBeanServerConnection)event.getNewValue();
+ String connString = (String) event.getOldValue();
try {
this.clean();
Set ons = mbsc.queryNames( null, null );
@@ -154,7 +155,7 @@
}
}
}
- a.firePropertyChangedEvent(Plugin.NEW_NODE_READY, null, mbsc);
+ a.firePropertyChangedEvent(Plugin.NEW_NODE_READY, connString, mbsc);
a.firePropertyChangedEvent(Plugin.PLUGIN_ACTIVATED, null, this.getComponentAt(0).getName());
} catch (MBeanException e) {