1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-25 09:55:29 +02:00

[271550] Make Target View: preserve "Same as Target Name" when copying targets - patch applied

This commit is contained in:
Alena Laskavaia 2009-04-16 17:02:48 +00:00
parent 2e58269b33
commit 9ec1cc1155

View file

@ -383,6 +383,9 @@ public class MakeTargetDndUtil {
IMakeTarget newMakeTarget = makeTargetManager.createTarget(project, name, builderId);
copyTargetData(makeTarget, newMakeTarget);
if (makeTarget.getName().equals(makeTarget.getBuildAttribute(IMakeTarget.BUILD_TARGET, ""))) { //$NON-NLS-1$
newMakeTarget.setBuildAttribute(IMakeTarget.BUILD_TARGET,name);
}
return newMakeTarget;
}