Author: rob.stryker(a)jboss.com
Date: 2008-03-07 18:14:47 -0500 (Fri, 07 Mar 2008)
New Revision: 6797
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/ServerConverter.java
Log:
Continued API change. Bug consisted of poll threads continuing to run even if somehow the
server state changed adn the poll thread was unaware. This leads to continued polling even
when the process has been canceled, for example. Fixed.
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/ServerConverter.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/ServerConverter.java 2008-03-07
23:08:31 UTC (rev 6796)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/ServerConverter.java 2008-03-07
23:14:47 UTC (rev 6797)
@@ -25,6 +25,7 @@
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.wst.server.core.IServer;
+import org.eclipse.wst.server.core.IServerWorkingCopy;
import org.eclipse.wst.server.core.ServerCore;
import org.jboss.ide.eclipse.as.core.server.IDeployableServer;
import org.jboss.ide.eclipse.as.core.server.internal.DeployableServerBehavior;
@@ -42,6 +43,13 @@
}
return jbServer;
}
+ public static JBossServer getJBossServer(IServerWorkingCopy server) {
+ JBossServer jbServer = (JBossServer)server.getAdapter(JBossServer.class);
+ if (jbServer == null) {
+ jbServer = (JBossServer) server.loadAdapter(JBossServer.class, new
NullProgressMonitor());
+ }
+ return jbServer;
+ }
public static IDeployableServer getDeployableServer(IServer server) {
IDeployableServer dep = (IDeployableServer)server.getAdapter(IDeployableServer.class);
Show replies by date