1
0
Fork 0
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:
Mikhail Sennikovsky 2007-03-29 08:36:14 +00:00
parent 4573a81a54
commit 88ce755dbb
2 changed files with 6 additions and 3 deletions

View file

@ -739,6 +739,9 @@ public class FolderInfo extends ResourceInfo implements IFolderInfo {
}
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 newReal = ManagedBuildManager.getRealToolChain(newSuperClass);

View file

@ -170,9 +170,9 @@ public class ToolChainEditTab extends AbstractCBuildPropertyTab {
if (cfg.getBuilder().isManagedBuildOn()) {
c_toolchain.setText(EMPTY_STR); // unprobable case
} else {
try {
fi.changeToolChain(null, null, null);
} catch (BuildException e) {}
// try {
// fi.changeToolChain(null, null, null);
// } catch (BuildException e) {}
c_toolchain.select(c_toolchain.getItemCount() - 1);
}
c_builder.setEnabled(false);