1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fix for hasCustomSettings state calculation

This commit is contained in:
Mikhail Sennikovsky 2007-09-19 08:21:08 +00:00
parent 8b988eb154
commit 2fda9019bc
2 changed files with 4 additions and 4 deletions

View file

@ -981,15 +981,15 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
String ext = path.getFileExtension();
if(ext == null)
ext = ""; //$NON-NLS-1$
ITool tool = ((FolderInfo)parentRc).getToolFromInputExtension(ext);
if(tool == null)
ITool otherTool = ((FolderInfo)parentRc).getToolFromInputExtension(ext);
if(otherTool == null)
return true;
ITool[] tti = getToolsToInvoke();
if(tti.length != 1)
return true;
return ((Tool)tool).hasCustomSettings((Tool)tti[0]);
return ((Tool)tti[0]).hasCustomSettings((Tool)otherTool);
}
ITool[] tools = getTools();
ITool[] otherTools = ((IFileInfo)parentRc).getTools();

View file

@ -2705,7 +2705,7 @@ public class ToolChain extends HoldsOptions implements IToolChain, IBuildPropert
ITool[] tools = getTools();
ITool[] otherTools = tCh.getTools();
if(tools.length != otherTools.length)
return false;
return true;
for(int i = 0; i < tools.length; i++){
Tool tool = (Tool)tools[i];