1. Home
  2. Computing & Technology
  3. Delphi Programming

A first look at Delphi 2005

By Zarko Gajic, About.com

4 of 7

Refactoring in Delphi 2005

Delphi2005 Refactoring Extract Method
Delphi 2005 includes a number of very helpful refactoring features, from extracting methods to declaring new variables or fields, extracting resource strings, renaming identifiers and refining the namespace and uses clauses.

Symbol renaming allows you to change all instances of a symbol's name throughout your project.
The Declare Variable and Declare Field options permit you to quickly create a local variable or member field declaration.
Resource refactorings are used in Delphi code to convert string literals into resourcestring block entries, replacing the original literal with the resource string symbol.
Extract method allows you to select a portion of source code and turn the code into a method, extracting the selected source code.
Although not exactly a refactoring, the Import Namespace and Find Unit options under the Refactor menu permit you to quickly locate and import the namespace associated with a particular symbol.

Explore Delphi Programming
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Delphi Programming
  4. Best Components and Tools
  5. Product reviews
  6. A first look at Delphi 2005

©2009 About.com, a part of The New York Times Company.

All rights reserved.