Author: adietish
Date: 2011-06-28 11:36:32 -0400 (Tue, 28 Jun 2011)
New Revision: 32410
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/StopLaunchConfiguration.java
Log:
[JBIDE-9054] replaced ServerConverter#findServer by ServerConverter#checkedGetJBossServer
to have consistent behavior (always throw core exception when jboss server / jboss runtime
cannot be found
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/StopLaunchConfiguration.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/StopLaunchConfiguration.java 2011-06-28
14:59:03 UTC (rev 32409)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/StopLaunchConfiguration.java 2011-06-28
15:36:32 UTC (rev 32410)
@@ -79,7 +79,7 @@
public static ILaunchConfigurationWorkingCopy createLaunchConfiguration(IServer server)
throws CoreException {
- JBossServer jbs = ServerConverter.findJBossServer(server.getId());
+ JBossServer jbs = ServerConverter.checkedGetJBossServer(server);
IJBossServerRuntime jbrt = RuntimeUtils.checkedGetJBossServerRuntime(server);
IPath serverHome = ServerUtil.getServerHomePath(jbs);
Show replies by date