Author: rob.stryker(a)jboss.com
Date: 2009-06-18 05:44:55 -0400 (Thu, 18 Jun 2009)
New Revision: 16029
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/DeploySection.java
Log:
JBIDE-4504
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/DeploySection.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/DeploySection.java 2009-06-18
09:20:19 UTC (rev 16028)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/DeploySection.java 2009-06-18
09:44:55 UTC (rev 16029)
@@ -61,6 +61,7 @@
import org.jboss.ide.eclipse.as.core.server.IDeployableServer;
import org.jboss.ide.eclipse.as.core.server.IJBossServerConstants;
import org.jboss.ide.eclipse.as.core.server.IJBossServerRuntime;
+import org.jboss.ide.eclipse.as.core.server.internal.JBossServer;
import org.jboss.ide.eclipse.as.core.server.internal.ServerAttributeHelper;
import org.jboss.ide.eclipse.as.core.util.ServerUtil;
import org.jboss.ide.eclipse.as.ui.JBossServerUIPlugin;
@@ -278,7 +279,7 @@
public IStatus[] getSaveStatus() {
String error = ""; //$NON-NLS-1$
List<Status> status = new ArrayList<Status>();
- if( getRuntime() == null ) {
+ if( getServer() instanceof JBossServer && getRuntime() == null ) {
String msg = Messages.EditorNoRuntimeSelected;
status.add(new Status(IStatus.ERROR, JBossServerUIPlugin.PLUGIN_ID, msg));
error = error + msg + "\n"; //$NON-NLS-1$
Show replies by date