Author: rob.stryker(a)jboss.com
Date: 2009-01-13 01:03:34 -0500 (Tue, 13 Jan 2009)
New Revision: 13007
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions/ExploreUtils.java
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/DeploySection.java
Log:
JBIDE-3391 - tiny fixes but no smoking gun yet
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions/ExploreUtils.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions/ExploreUtils.java 2009-01-13
03:13:11 UTC (rev 13006)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/actions/ExploreUtils.java 2009-01-13
06:03:34 UTC (rev 13007)
@@ -80,7 +80,7 @@
public static String getDeployDirectory(IServer server) {
IDeployableServer deployableServer = ServerConverter.getDeployableServer(server);
- if (deployableServer != null) {
+ if (server.getRuntime() != null && deployableServer != null) {
return deployableServer.getDeployFolder();
}
IServerWorkingCopy swc = server.createWorkingCopy();
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-01-13
03:13:11 UTC (rev 13006)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/DeploySection.java 2009-01-13
06:03:34 UTC (rev 13007)
@@ -240,10 +240,10 @@
}
private String getDeployDir() {
- return makeRelative(getServer().getDeployFolder());
+ return server.getRuntime() == null ? "" :
makeRelative(getServer().getDeployFolder());
}
private String getTempDeployDir() {
- return makeRelative(getServer().getTempDeployFolder());
+ return server.getRuntime() == null ? "" :
makeRelative(getServer().getTempDeployFolder());
}
private IDeployableServer getServer() {
Show replies by date