Author: rob.stryker(a)jboss.com
Date: 2011-04-19 14:40:53 -0400 (Tue, 19 Apr 2011)
New Revision: 30665
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/Activator.java
Log:
JBIDE-8754 - initial server lifecycle listener not added
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/Activator.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/Activator.java 2011-04-19
18:36:38 UTC (rev 30664)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.jmx.integration/src/org/jboss/ide/eclipse/as/jmx/integration/Activator.java 2011-04-19
18:40:53 UTC (rev 30665)
@@ -1,6 +1,7 @@
package org.jboss.ide.eclipse.as.jmx.integration;
import org.eclipse.core.runtime.Plugin;
+import org.jboss.ide.eclipse.as.core.server.UnitedServerListenerManager;
import org.osgi.framework.BundleContext;
/**
@@ -27,6 +28,7 @@
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
+ UnitedServerListenerManager.getDefault().addListener(JMXServerLifecycleListener.getDefault());
}
/*
@@ -34,6 +36,7 @@
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
*/
public void stop(BundleContext context) throws Exception {
+ UnitedServerListenerManager.getDefault().removeListener(JMXServerLifecycleListener.getDefault());
plugin = null;
super.stop(context);
}
Show replies by date