You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by sf...@apache.org on 2007/04/24 17:26:42 UTC
svn commit: r531982 -
/incubator/felix/trunk/mosgi.console.gui/src/main/java/org/apache/felix/mosgi/console/gui/NodePanel.java
Author: sfrenot
Date: Tue Apr 24 08:26:41 2007
New Revision: 531982
URL: http://svn.apache.org/viewvc?view=rev&rev=531982
Log:
FELIX-159
The NEW_NODE_READY PropertyChangeEvent now contains the gateway identification s
tring. Can be used by Plugins to identify the managed gateway.
Modified:
incubator/felix/trunk/mosgi.console.gui/src/main/java/org/apache/felix/mosgi/console/gui/NodePanel.java
Modified: incubator/felix/trunk/mosgi.console.gui/src/main/java/org/apache/felix/mosgi/console/gui/NodePanel.java
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/mosgi.console.gui/src/main/java/org/apache/felix/mosgi/console/gui/NodePanel.java?view=diff&rev=531982&r1=531981&r2=531982
==============================================================================
--- incubator/felix/trunk/mosgi.console.gui/src/main/java/org/apache/felix/mosgi/console/gui/NodePanel.java (original)
+++ incubator/felix/trunk/mosgi.console.gui/src/main/java/org/apache/felix/mosgi/console/gui/NodePanel.java Tue Apr 24 08:26:41 2007
@@ -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) {