Author: max.andersen(a)jboss.com
Date: 2008-01-24 05:33:36 -0500 (Thu, 24 Jan 2008)
New Revision: 5924
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/DeploySection.java
Log:
Tell the user which directory is actually the problem (the paths can be very long and not
always visible)
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 2008-01-24
10:10:22 UTC (rev 5923)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/DeploySection.java 2008-01-24
10:33:36 UTC (rev 5924)
@@ -22,6 +22,7 @@
package org.jboss.ide.eclipse.as.ui.editor;
import java.util.ArrayList;
+import java.util.List;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Path;
@@ -198,14 +199,15 @@
public IStatus[] getSaveStatus() {
String error = "";
- ArrayList status = new ArrayList();
+ List status = new ArrayList();
if(!new Path(text.getText()).toFile().exists()) {
- String msg = "The path \"" + text.getText() + "\" does not
exist.";
+ String msg = "The deploy directory \"" + text.getText() + "\"
does not exist.";
status.add(new Status(IStatus.ERROR, JBossServerCorePlugin.PLUGIN_ID, msg));
error = msg + "\n";
}
+
if(!new Path(tempDeployText.getText()).toFile().exists()) {
- String msg = "The path \"" + tempDeployText.getText() + "\"
does not exist.";
+ String msg = "The temporary deploy directory \"" +
tempDeployText.getText() + "\" does not exist.";
status.add(new Status(IStatus.ERROR, JBossServerCorePlugin.PLUGIN_ID, msg));
error = error + msg + "\n";
}
Show replies by date