Author: rob.stryker(a)jboss.com
Date: 2012-03-01 03:23:40 -0500 (Thu, 01 Mar 2012)
New Revision: 39220
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/ServerModeSectionComposite.java
Log:
JBIDE-11116 to trunk (additional patch, new server wizard fails without it)
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/ServerModeSectionComposite.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/ServerModeSectionComposite.java 2012-03-01
08:19:17 UTC (rev 39219)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/ServerModeSectionComposite.java 2012-03-01
08:23:40 UTC (rev 39220)
@@ -27,7 +27,7 @@
import org.eclipse.swt.widgets.Control;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.ScrolledPageBook;
-import org.eclipse.wst.server.core.IServer;
+import org.eclipse.wst.server.core.IRuntime;
import org.eclipse.wst.server.core.IServerWorkingCopy;
import org.eclipse.wst.server.core.util.SocketUtil;
import org.eclipse.wst.server.ui.internal.command.ServerCommand;
@@ -167,8 +167,9 @@
return true;
}
protected boolean showListenOnAllHostsCheckbox() {
- IServer server = callback.getServer().getOriginal();
- JBossExtendedProperties props = (JBossExtendedProperties)server
+
+ IRuntime rt = callback.getRuntime();
+ JBossExtendedProperties props = (JBossExtendedProperties)rt
.loadAdapter(JBossExtendedProperties.class,
new NullProgressMonitor());
return props == null ? false : props.runtimeSupportsBindingToAllInterfaces();
Show replies by date