Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlena Laskavaia2009-02-03 09:59:50 -0500
committerAlena Laskavaia2009-02-03 09:59:50 -0500
commitbd7f096c7c4469c98cea8692325267b63e269d43 (patch)
treeac6fbeb3f529d9c7c6c965ba02f8cd84ad82a16b
parentdd74a6f0ebb85a8c09fcfe66c6d371ccd5ad2250 (diff)
downloadorg.eclipse.cdt-bd7f096c7c4469c98cea8692325267b63e269d43.tar.gz
org.eclipse.cdt-bd7f096c7c4469c98cea8692325267b63e269d43.tar.xz
org.eclipse.cdt-bd7f096c7c4469c98cea8692325267b63e269d43.zip
[124456] - drag & drop looses argument, patch applied
-rw-r--r--build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/dnd/TextTransferDragSourceListener.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/dnd/TextTransferDragSourceListener.java b/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/dnd/TextTransferDragSourceListener.java
index d0c363ad7a..b38e1b1bd5 100644
--- a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/dnd/TextTransferDragSourceListener.java
+++ b/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/dnd/TextTransferDragSourceListener.java
@@ -109,9 +109,15 @@ public class TextTransferDragSourceListener extends AbstractSelectionDragAdapter
buildCommand =makeTarget.getBuildAttribute(IMakeCommonBuildInfo.BUILD_COMMAND,
MakeTargetDndUtil.DEFAULT_BUILD_COMMAND);
}
- targetsText = targetsText
- + buildCommand + ' '
- + makeTarget.getBuildAttribute(IMakeTarget.BUILD_TARGET, "") //$NON-NLS-1$
+ String buildCommandArguments = makeTarget.getBuildAttribute(IMakeCommonBuildInfo.BUILD_ARGUMENTS, "").trim(); //$NON-NLS-1$
+ if (buildCommandArguments.length()>0) {
+ buildCommandArguments = ' ' + buildCommandArguments;
+ }
+ String buildTarget = makeTarget.getBuildAttribute(IMakeTarget.BUILD_TARGET, "").trim(); //$NON-NLS-1$
+ if (buildTarget.length()>0) {
+ buildTarget = ' ' + buildTarget;
+ }
+ targetsText = targetsText + buildCommand + buildCommandArguments + buildTarget
+ System.getProperty("line.separator"); //$NON-NLS-1$
}
}

Back to the top