mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 09:16:02 +02:00
Cosmetics.
This commit is contained in:
parent
1d231890fb
commit
3ea797a02e
1 changed files with 4 additions and 7 deletions
|
@ -53,8 +53,8 @@ public abstract class CLaunchConfigurationTab extends AbstractLaunchConfiguratio
|
||||||
IWorkbenchPage page = GdbUIPlugin.getActivePage();
|
IWorkbenchPage page = GdbUIPlugin.getActivePage();
|
||||||
Object obj = null;
|
Object obj = null;
|
||||||
try {
|
try {
|
||||||
projectName = config.getAttribute(ICDTLaunchConfigurationConstants.ATTR_PROJECT_NAME, (String)null);
|
projectName = config.getAttribute(ICDTLaunchConfigurationConstants.ATTR_PROJECT_NAME, (String) null);
|
||||||
programName = config.getAttribute(ICDTLaunchConfigurationConstants.ATTR_PROGRAM_NAME, (String)null);
|
programName = config.getAttribute(ICDTLaunchConfigurationConstants.ATTR_PROGRAM_NAME, (String) null);
|
||||||
if (programName != null) {
|
if (programName != null) {
|
||||||
programName = VariablesPlugin.getDefault().getStringVariableManager().performStringSubstitution(programName);
|
programName = VariablesPlugin.getDefault().getStringVariableManager().performStringSubstitution(programName);
|
||||||
}
|
}
|
||||||
|
@ -115,15 +115,13 @@ public abstract class CLaunchConfigurationTab extends AbstractLaunchConfiguratio
|
||||||
return (ICElement)obj;
|
return (ICElement)obj;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (page != null)
|
if (page != null) {
|
||||||
{
|
|
||||||
IEditorPart part = page.getActiveEditor();
|
IEditorPart part = page.getActiveEditor();
|
||||||
if (part != null) {
|
if (part != null) {
|
||||||
IEditorInput input = part.getEditorInput();
|
IEditorInput input = part.getEditorInput();
|
||||||
if (input instanceof IFileEditorInput) {
|
if (input instanceof IFileEditorInput) {
|
||||||
IFile file = ((IFileEditorInput)input).getFile();
|
IFile file = ((IFileEditorInput)input).getFile();
|
||||||
if (file != null)
|
if (file != null) {
|
||||||
{
|
|
||||||
ICElement ce = CoreModel.getDefault().create(file);
|
ICElement ce = CoreModel.getDefault().create(file);
|
||||||
if (ce == null) {
|
if (ce == null) {
|
||||||
IProject pro = file.getProject();
|
IProject pro = file.getProject();
|
||||||
|
@ -153,7 +151,6 @@ public abstract class CLaunchConfigurationTab extends AbstractLaunchConfiguratio
|
||||||
|
|
||||||
}
|
}
|
||||||
config.setAttribute(ICDTLaunchConfigurationConstants.ATTR_PROJECT_NAME, name);
|
config.setAttribute(ICDTLaunchConfigurationConstants.ATTR_PROJECT_NAME, name);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String getPlatform(ILaunchConfiguration config) {
|
protected String getPlatform(ILaunchConfiguration config) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue