mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
fix for the tool-chain modification functionality
This commit is contained in:
parent
92e72835f8
commit
35af19eaff
1 changed files with 5 additions and 3 deletions
|
@ -57,7 +57,7 @@ public class FolderInfoModification extends ToolListModification implements IFol
|
|||
fSelectedToolChain = (ToolChain)foInfo.getToolChain();
|
||||
fRealToolChain = (ToolChain)ManagedBuildManager.getRealToolChain(fSelectedToolChain);
|
||||
}
|
||||
|
||||
|
||||
public FolderInfoModification(FolderInfo foInfo, FolderInfoModification base) {
|
||||
super(foInfo, base);
|
||||
fSelectedToolChain = base.fSelectedToolChain;
|
||||
|
@ -191,7 +191,9 @@ public class FolderInfoModification extends ToolListModification implements IFol
|
|||
public void setToolChain(IToolChain tc){
|
||||
if(tc == fSelectedToolChain)
|
||||
return;
|
||||
|
||||
|
||||
applyToolChain((ToolChain)tc);
|
||||
|
||||
fSelectedToolChain = (ToolChain)tc;
|
||||
IToolChain newReal = ManagedBuildManager.getRealToolChain(tc);
|
||||
if(newReal == fRealToolChain)
|
||||
|
@ -200,7 +202,7 @@ public class FolderInfoModification extends ToolListModification implements IFol
|
|||
fRealToolChain = (ToolChain)newReal;
|
||||
|
||||
// setProjectTools(tc.getTools());
|
||||
applyToolChain(fSelectedToolChain);
|
||||
// applyToolChain(fSelectedToolChain);
|
||||
clearToolInfo(tc.getTools());
|
||||
fCurrentCompatibilityInfo = null;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue