Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Rennie2013-05-13 18:52:48 +0000
committerCurtis Windatt2013-05-13 18:52:48 +0000
commita19c729af000fe1dcdb5eb3132c73a6a6b7df136 (patch)
tree098c1cbb111d16863c5787989e087ef8e69e85df
parentcf8479dbf7b6acbd74f2f34b522cedd95d7cedb1 (diff)
downloadeclipse.platform.debug-a19c729af000fe1dcdb5eb3132c73a6a6b7df136.tar.gz
eclipse.platform.debug-a19c729af000fe1dcdb5eb3132c73a6a6b7df136.tar.xz
eclipse.platform.debug-a19c729af000fe1dcdb5eb3132c73a6a6b7df136.zip
Bug 407667 - When there is no command line properties the sentenceI20130513-2000
saying so is broken up
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/ProcessPropertyPage.java25
1 files changed, 6 insertions, 19 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/ProcessPropertyPage.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/ProcessPropertyPage.java
index cccb9b61b..1ee78764c 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/ProcessPropertyPage.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/ProcessPropertyPage.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2012 IBM Corporation and others.
+ * Copyright (c) 2000, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -92,8 +92,9 @@ public class ProcessPropertyPage extends PropertyPage {
GridData.FILL_BOTH);
styledText.setBackground(parent.getBackground());
((GridData)styledText.getLayoutData()).horizontalIndent = 10;
- String commandLineText = getCommandLineText(proc);
- if (commandLineText != null) {
+ String commandLineText = DebugPreferencesMessages.ProcessPropertyPage_5;
+ if (proc != null) {
+ commandLineText = proc.getAttribute(IProcess.ATTR_CMDLINE);
String[] arguments = DebugPlugin.parseArguments(commandLineText);
int count = arguments.length;
if (count > 1) {
@@ -131,6 +132,8 @@ public class ProcessPropertyPage extends PropertyPage {
}
});
}
+ }
+ if(commandLineText != null) {
styledText.setText(commandLineText);
}
@@ -234,22 +237,6 @@ public class ProcessPropertyPage extends PropertyPage {
return text;
}
- /**
- * Initializes the text to be displayed in the command line text widget
- * @param proc the process to compile the label fragment from
- * @return the command line text or the empty string
- *
- * @see IProcess#ATTR_CMDLINE
- * @since 3.2
- */
- private String getCommandLineText(IProcess proc) {
- String cmdline = DebugPreferencesMessages.ProcessPropertyPage_5;
- if(proc != null) {
- cmdline = proc.getAttribute(IProcess.ATTR_CMDLINE);
- }
- return cmdline;
- }
-
/**
* Initializes the text to be displayed in the environment text widget
* @param proc

Back to the top