IDE: codeexplorer: nicer node names

git-svn-id: trunk@31193 -
This commit is contained in:
mattias 2011-06-13 08:02:17 +00:00
parent f79f75c16c
commit c57d5ad7ae

View File

@ -709,6 +709,21 @@ begin
ctnUnit, ctnProgram, ctnLibrary, ctnPackage:
Result:=CodeNode.DescAsString+' '+ACodeTool.ExtractSourceName;
ctnTypeSection:
Result:='Type';
ctnVarSection:
Result:='Var';
ctnConstSection:
Result:='Const';
ctnLabelSection:
Result:='Label';
ctnResStrSection:
Result:='Resourcestring';
ctnTypeDefinition,ctnVarDefinition,ctnConstDefinition,ctnUseUnit:
Result:=ACodeTool.ExtractIdentifier(CodeNode.StartPos);
@ -729,9 +744,21 @@ begin
phpWithParameterNames,phpWithDefaultValues,phpWithResultType,
phpWithOfObject,phpWithCallingSpecs,phpWithProcModifiers]);
ctnProcedureHead:
Result:='Procedure Header';
ctnProperty:
Result:=ACodeTool.ExtractPropName(CodeNode,false); // property keyword is not needed because there are icons
ctnInterface:
Result:='Interface';
ctnBeginBlock:
Result:='Begin block';
ctnAsmBlock:
Result:='Asm block';
else
Result:=CodeNode.DescAsString;
end;