mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
Remove unnecessary cast to IToolChain.
Change-Id: I653c4b3f4389c4ad4add33cf223ff7882d8fb0ac Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
This commit is contained in:
parent
abdeccb73f
commit
2f20829144
3 changed files with 6 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2015 Mentor Graphics Corporation.
|
||||
* Copyright (c) 2015, 2020 Mentor Graphics Corporation.
|
||||
*
|
||||
* This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License 2.0
|
||||
|
@ -130,7 +130,7 @@ public class AutotoolsProjectImportWizard extends NewMakeProjFromExisting {
|
|||
|
||||
CfgHolder cfgHolder = new CfgHolder(toolChain, null);
|
||||
String s = toolChain == null ? "0" : ((ToolChain) toolChain).getId(); //$NON-NLS-1$
|
||||
Configuration config = new Configuration(mProj, (ToolChain) toolChain,
|
||||
Configuration config = new Configuration(mProj, toolChain,
|
||||
ManagedBuildManager.calculateChildId(s, null), cfgHolder.getName());
|
||||
IBuilder builder = config.getEditableBuilder();
|
||||
builder.setManagedBuildOn(false);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2010, 2018 Wind River Systems and others.
|
||||
* Copyright (c) 2010, 2020 Wind River Systems and others.
|
||||
*
|
||||
* This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License 2.0
|
||||
|
@ -109,7 +109,7 @@ public class NewMakeProjFromExisting extends Wizard implements IImportWizard, IN
|
|||
|
||||
CfgHolder cfgHolder = new CfgHolder(toolChain, null);
|
||||
String s = toolChain == null ? "0" : ((ToolChain) toolChain).getId(); //$NON-NLS-1$
|
||||
Configuration config = new Configuration(mProj, (ToolChain) toolChain,
|
||||
Configuration config = new Configuration(mProj, toolChain,
|
||||
ManagedBuildManager.calculateChildId(s, null), cfgHolder.getName());
|
||||
IBuilder builder = config.getEditableBuilder();
|
||||
builder.setManagedBuildOn(false);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2007, 2018 Intel Corporation and others.
|
||||
* Copyright (c) 2007, 2020 Intel Corporation and others.
|
||||
*
|
||||
* This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License 2.0
|
||||
|
@ -88,7 +88,7 @@ public class STDWizardHandler extends MBSWizardHandler {
|
|||
int work = 50 / cfgs.length;
|
||||
for (int i = 0; i < cfgs.length; i++) {
|
||||
String s = (cfgs[i].getToolChain() == null) ? "0" : ((ToolChain) (cfgs[i].getToolChain())).getId(); //$NON-NLS-1$
|
||||
Configuration cfg = new Configuration(mProj, (ToolChain) cfgs[i].getToolChain(),
|
||||
Configuration cfg = new Configuration(mProj, cfgs[i].getToolChain(),
|
||||
ManagedBuildManager.calculateChildId(s, null), cfgs[i].getName());
|
||||
cfgs[i].setConfiguration(cfg);
|
||||
IBuilder bld = cfg.getEditableBuilder();
|
||||
|
|
Loading…
Add table
Reference in a new issue