cody: dictionary: use only units

git-svn-id: trunk@36478 -
This commit is contained in:
mattias 2012-03-31 08:08:11 +00:00
parent 7d623db285
commit 30b303c406

View File

@ -43,7 +43,7 @@ uses
Buttons, PackageIntf, LazIDEIntf, SrcEditorIntf, ProjectIntf, CompOptsIntf,
IDEDialogs, CodeCache, BasicCodeTools, CustomCodeTool, CodeToolManager,
UnitDictionary, CodeTree, LinkScanner, DefineTemplates, CodeToolsStructs,
CodyStrConsts, CodyUtils, CodyOpts;
FindDeclarationTool, CodyStrConsts, CodyUtils, CodyOpts;
const
PackageNameFPCSrcDir = 'FPCSrcDir';
@ -416,6 +416,8 @@ procedure TCodyUnitDictionary.ToolTreeChanged(Tool: TCustomCodeTool;
NodesDeleting: boolean);
begin
if fParsingTool=Tool then exit;
if not (Tool is TFindDeclarationTool) then exit;
if TFindDeclarationTool(Tool).GetSourceType<>ctnUnit then exit;
//debugln(['TCodyUnitDictionary.ToolTreeChanged ',Tool.MainFilename]);
if fQueuedTools.Find(Tool)<>nil then exit;
fQueuedTools.Add(Tool);