mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-27 02:45:32 +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();
|
fSelectedToolChain = (ToolChain)foInfo.getToolChain();
|
||||||
fRealToolChain = (ToolChain)ManagedBuildManager.getRealToolChain(fSelectedToolChain);
|
fRealToolChain = (ToolChain)ManagedBuildManager.getRealToolChain(fSelectedToolChain);
|
||||||
}
|
}
|
||||||
|
|
||||||
public FolderInfoModification(FolderInfo foInfo, FolderInfoModification base) {
|
public FolderInfoModification(FolderInfo foInfo, FolderInfoModification base) {
|
||||||
super(foInfo, base);
|
super(foInfo, base);
|
||||||
fSelectedToolChain = base.fSelectedToolChain;
|
fSelectedToolChain = base.fSelectedToolChain;
|
||||||
|
@ -191,7 +191,9 @@ public class FolderInfoModification extends ToolListModification implements IFol
|
||||||
public void setToolChain(IToolChain tc){
|
public void setToolChain(IToolChain tc){
|
||||||
if(tc == fSelectedToolChain)
|
if(tc == fSelectedToolChain)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
applyToolChain((ToolChain)tc);
|
||||||
|
|
||||||
fSelectedToolChain = (ToolChain)tc;
|
fSelectedToolChain = (ToolChain)tc;
|
||||||
IToolChain newReal = ManagedBuildManager.getRealToolChain(tc);
|
IToolChain newReal = ManagedBuildManager.getRealToolChain(tc);
|
||||||
if(newReal == fRealToolChain)
|
if(newReal == fRealToolChain)
|
||||||
|
@ -200,7 +202,7 @@ public class FolderInfoModification extends ToolListModification implements IFol
|
||||||
fRealToolChain = (ToolChain)newReal;
|
fRealToolChain = (ToolChain)newReal;
|
||||||
|
|
||||||
// setProjectTools(tc.getTools());
|
// setProjectTools(tc.getTools());
|
||||||
applyToolChain(fSelectedToolChain);
|
// applyToolChain(fSelectedToolChain);
|
||||||
clearToolInfo(tc.getTools());
|
clearToolInfo(tc.getTools());
|
||||||
fCurrentCompatibilityInfo = null;
|
fCurrentCompatibilityInfo = null;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue