IDE: converter: search classes in implementation too

git-svn-id: trunk@27480 -
This commit is contained in:
mattias 2010-09-26 20:04:31 +00:00
parent 6d02cc37ff
commit 82369989ce
2 changed files with 5 additions and 3 deletions

View File

@ -4531,9 +4531,11 @@ begin
Result:=false;
BuildTree(not SearchImplementationToo);
if SearchImplementationToo then
ClassNode:=FindClassNodeInUnit(AClassName,true,false,false,true)
ClassNode:=FindClassNodeInUnit(AClassName,true,false,false,
ExceptionOnClassNotFound)
else
ClassNode:=FindClassNodeInInterface(AClassName,true,false,true);
ClassNode:=FindClassNodeInInterface(AClassName,true,false,
ExceptionOnClassNotFound);
if ClassNode=nil then exit;
if (ListOfTypes=nil) or (ListOfTypes.Tree.Count=0) then exit(true);

View File

@ -319,7 +319,7 @@ begin
// Apply replacement types also to pascal source.
if TypeReplacements.Tree.Count>0 then
if not CodeToolBoss.RetypeClassVariables(fPascalBuffer,
TLFMObjectNode(fLFMTree.Root).TypeName, TypeReplacements, false) then
TLFMObjectNode(fLFMTree.Root).TypeName, TypeReplacements, false, true) then
Result:=mrCancel;
finally
TypeReplacements.Free;