mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Fix to the tool-chain edit mechanism
This commit is contained in:
parent
4573a81a54
commit
88ce755dbb
2 changed files with 6 additions and 3 deletions
|
@ -739,6 +739,9 @@ public class FolderInfo extends ResourceInfo implements IFolderInfo {
|
||||||
}
|
}
|
||||||
|
|
||||||
public IToolChain changeToolChain(IToolChain newSuperClass, String Id, String name) throws BuildException{
|
public IToolChain changeToolChain(IToolChain newSuperClass, String Id, String name) throws BuildException{
|
||||||
|
if(newSuperClass == null)
|
||||||
|
newSuperClass = ManagedBuildManager.getExtensionToolChain(ConfigurationDataProvider.PREF_TC_ID);
|
||||||
|
|
||||||
IToolChain curReal = ManagedBuildManager.getRealToolChain(toolChain);
|
IToolChain curReal = ManagedBuildManager.getRealToolChain(toolChain);
|
||||||
IToolChain newReal = ManagedBuildManager.getRealToolChain(newSuperClass);
|
IToolChain newReal = ManagedBuildManager.getRealToolChain(newSuperClass);
|
||||||
|
|
||||||
|
|
|
@ -170,9 +170,9 @@ public class ToolChainEditTab extends AbstractCBuildPropertyTab {
|
||||||
if (cfg.getBuilder().isManagedBuildOn()) {
|
if (cfg.getBuilder().isManagedBuildOn()) {
|
||||||
c_toolchain.setText(EMPTY_STR); // unprobable case
|
c_toolchain.setText(EMPTY_STR); // unprobable case
|
||||||
} else {
|
} else {
|
||||||
try {
|
// try {
|
||||||
fi.changeToolChain(null, null, null);
|
// fi.changeToolChain(null, null, null);
|
||||||
} catch (BuildException e) {}
|
// } catch (BuildException e) {}
|
||||||
c_toolchain.select(c_toolchain.getItemCount() - 1);
|
c_toolchain.select(c_toolchain.getItemCount() - 1);
|
||||||
}
|
}
|
||||||
c_builder.setEnabled(false);
|
c_builder.setEnabled(false);
|
||||||
|
|
Loading…
Add table
Reference in a new issue