mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Avoid calling a deprecated method.
This commit is contained in:
parent
03669cfebe
commit
d543b29bc4
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ public class CApplicationLaunchShortcut implements ILaunchShortcut2 {
|
||||||
String projectName = bin.getResource().getProjectRelativePath().toString();
|
String projectName = bin.getResource().getProjectRelativePath().toString();
|
||||||
ILaunchConfigurationType configType = getCLaunchConfigType();
|
ILaunchConfigurationType configType = getCLaunchConfigType();
|
||||||
ILaunchConfigurationWorkingCopy wc =
|
ILaunchConfigurationWorkingCopy wc =
|
||||||
configType.newInstance(null, getLaunchManager().generateUniqueLaunchConfigurationNameFrom(bin.getElementName()));
|
configType.newInstance(null, getLaunchManager().generateLaunchConfigurationName(bin.getElementName()));
|
||||||
wc.setAttribute(ICDTLaunchConfigurationConstants.ATTR_PROGRAM_NAME, projectName);
|
wc.setAttribute(ICDTLaunchConfigurationConstants.ATTR_PROGRAM_NAME, projectName);
|
||||||
wc.setAttribute(ICDTLaunchConfigurationConstants.ATTR_PROJECT_NAME, bin.getCProject().getElementName());
|
wc.setAttribute(ICDTLaunchConfigurationConstants.ATTR_PROJECT_NAME, bin.getCProject().getElementName());
|
||||||
wc.setMappedResources(new IResource[] { bin.getResource().getProject() });
|
wc.setMappedResources(new IResource[] { bin.getResource().getProject() });
|
||||||
|
|
Loading…
Add table
Reference in a new issue