What’s New in Delphi 2005?[7]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 shiyd 的 blog

tool palette

the search mechanism of the tool palette has been enhanced so that you can now enter the first letter(s) of a component, and immediately only the categories and components that start with this letter(s) are filtered for you, highlighting the letter(s) you typed and filtering further as you type. pressing enter will place the current selected component on the form in the designer.

tool palette wizards

in addition to showing components (when in design view) or code snippets (when the code editor has the focus), the tool palette has been enhanced to also show the wizards from the object repository to start new projects, with the object repository categories translated into tool palette categories. this allows you to easily create new files, projects, and objects from the wizard with a quick hot key.

 

2.2 refactoring

refactoring is the process of reshaping existing source code by adding structure to it, without changing the behaviour and output of your code, thereby making it easier for actual reuse and maintenance.

borland delphi 2005 refactoring support includes a number of very helpful new features, from extracting methods to declaring new variables or fields, extracting resource strings, renaming identifiers and refining the namespace and uses clauses.

 

delphi 2005 refactor menu

rename symbols [delphi/c#]

while the sync edit feature allows you to lexically rename identifiers in a selected section of source code, for larger sections of source code delphi 2005 refactoring offers the option to rename symbols (like fields, methods, properties, variables, etc.) using refactor - rename. the refactoring dialog will even allow you to view all references before refactoring (so you can verify all places where the rename will be made).

this feature adds real refactoring intelligence to the standard search and replace functionality, by not just renaming any symbol within the current scope, but only those that are indeed the same as the selected symbol .for example, if you have both a method x and a local variable x, and you want to rename only the method x, refactor - rename ensures the local variable x will be left alone, as it recognizes it’s not the same as the method x).

本文关键:What’s New in Delphi 2005?
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top