Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Barnes2004-11-25 16:20:19 +0000
committerKevin Barnes2004-11-25 16:20:19 +0000
commit58f70ee6a7b3edf1165cb29ddb7870a8b69834ce (patch)
treee1546f3763e4b0521f182f4bc205e022472080b4
parentd56dfbb7d264a2ddcb0e7f1ee97c7c0a7541ff4b (diff)
downloadeclipse.platform.debug-58f70ee6a7b3edf1165cb29ddb7870a8b69834ce.tar.gz
eclipse.platform.debug-58f70ee6a7b3edf1165cb29ddb7870a8b69834ce.tar.xz
eclipse.platform.debug-58f70ee6a7b3edf1165cb29ddb7870a8b69834ce.zip
Bug 23064 - RFE: Add option to redirect console output (stderr & stdout) to file
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.properties1
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/CommonTab.java12
2 files changed, 12 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.properties b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.properties
index b42cccec2..6c762bd5a 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.properties
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.properties
@@ -26,6 +26,7 @@ CommonTab.4=Capture Output
CommonTab.5=Con&sole
CommonTab.6=Fi&le:
CommonTab.7=B&rowse...
+CommonTab.8=No file specified for process output
CompileErrorPromptStatusHandler.0=Errors in Project
CompileErrorPromptStatusHandler.1=Errors exist in a required project. Continue launch?
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/CommonTab.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/CommonTab.java
index 7907b6219..39330af18 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/CommonTab.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/CommonTab.java
@@ -587,9 +587,19 @@ public class CommonTab extends AbstractLaunchConfigurationTab {
setMessage(null);
setErrorMessage(null);
- return validateLocalShared();
+ return validateLocalShared() && validateRedirectFile();
}
+ private boolean validateRedirectFile() {
+ if(fFileOutput.getSelection()) {
+ int len = fFileText.getText().length();
+ if (len == 0) {
+ setErrorMessage(LaunchConfigurationsMessages.getString("CommonTab.8")); //$NON-NLS-1$
+ return false;
+ }
+ }
+ return true;
+ }
private boolean validateLocalShared() {
if (isShared()) {

Back to the top