1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 06:05:24 +02:00

[124456] - drag & drop looses argument, patch applied

This commit is contained in:
Alena Laskavaia 2009-02-03 14:59:50 +00:00
parent dd74a6f0eb
commit bd7f096c7c

View file

@ -109,9 +109,15 @@ public class TextTransferDragSourceListener extends AbstractSelectionDragAdapter
buildCommand =makeTarget.getBuildAttribute(IMakeCommonBuildInfo.BUILD_COMMAND, buildCommand =makeTarget.getBuildAttribute(IMakeCommonBuildInfo.BUILD_COMMAND,
MakeTargetDndUtil.DEFAULT_BUILD_COMMAND); MakeTargetDndUtil.DEFAULT_BUILD_COMMAND);
} }
targetsText = targetsText String buildCommandArguments = makeTarget.getBuildAttribute(IMakeCommonBuildInfo.BUILD_ARGUMENTS, "").trim(); //$NON-NLS-1$
+ buildCommand + ' ' if (buildCommandArguments.length()>0) {
+ makeTarget.getBuildAttribute(IMakeTarget.BUILD_TARGET, "") //$NON-NLS-1$ 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$ + System.getProperty("line.separator"); //$NON-NLS-1$
} }
} }