Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Inglis2004-09-10 19:15:23 +0000
committerDavid Inglis2004-09-10 19:15:23 +0000
commit967d6f8b786ed6ad2d3f535bc1a4941046fd1d47 (patch)
tree98a462bdbdd4e4ea98145cf84cccf5a7000eebe6 /build/org.eclipse.cdt.make.ui
parentaa6bac0467b806209256618f95251679c818845d (diff)
downloadorg.eclipse.cdt-967d6f8b786ed6ad2d3f535bc1a4941046fd1d47.tar.gz
org.eclipse.cdt-967d6f8b786ed6ad2d3f535bc1a4941046fd1d47.tar.xz
org.eclipse.cdt-967d6f8b786ed6ad2d3f535bc1a4941046fd1d47.zip
fixed 69719
Diffstat (limited to 'build/org.eclipse.cdt.make.ui')
-rw-r--r--build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/dialogs/MakeTargetDialog.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/dialogs/MakeTargetDialog.java b/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/dialogs/MakeTargetDialog.java
index 472d1d3f6be..62471267521 100644
--- a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/dialogs/MakeTargetDialog.java
+++ b/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/dialogs/MakeTargetDialog.java
@@ -263,17 +263,6 @@ public class MakeTargetDialog extends Dialog {
updateButtons();
}
});
- if (buildCommand != null) {
- StringBuffer cmd = new StringBuffer(buildCommand.toOSString());
- if (!isDefaultCommand) {
- String args = buildArguments;
- if (args != null && !args.equals("")) { //$NON-NLS-1$
- cmd.append(" "); //$NON-NLS-1$
- cmd.append(args);
- }
- }
- commandText.setText(cmd.toString());
- }
if (isDefaultCommand) {
commandText.setEnabled(false);
} else {
@@ -322,6 +311,17 @@ public class MakeTargetDialog extends Dialog {
targetNameText.setText(generateUniqueName(targetString));
}
targetNameText.selectAll();
+ if (buildCommand != null) {
+ StringBuffer cmd = new StringBuffer(buildCommand.toOSString());
+ if (!isDefaultCommand) {
+ String args = buildArguments;
+ if (args != null && !args.equals("")) { //$NON-NLS-1$
+ cmd.append(" "); //$NON-NLS-1$
+ cmd.append(args);
+ }
+ }
+ commandText.setText(cmd.toString());
+ }
}
protected void updateButtons() {

Back to the top