Help real-time prompt
The new help real-time prompts provide similar classes, attributes, methods, or events for identifiers, similar behaviors when entering. Help real-time prompts there are two different display methods: or use pop-up bubbles, or The code that the pop-up code is displayed together in conjunction.
When the mouse is shifted, an identifier will pop up a real-time help of a bubble window. It will generate a toolpological prompt window to display relevant information for a particular identifier, including related links to online help. .
You can also get one and code real-time prompts to help real-time prompts, and give further help tips according to the entry selected in the code real-time prompt window. After you choose a property, method, or event, It is especially useful when you need to know the purpose you want to satisfy.
Delphi 2005 helps real-time prompts with code real-time prompt
Help real-time prompts can generate relevant tips for your own defined classes and methods.
Structural view
Delphi 2005 IDE includes a structure view. This window is especially useful in some occasions. It can display the inheritance structure of the source code in the code sector. Similarly, it also displays the HTML control included in the HTML designer. Like the VCL Form Designer display the continuation structure of the visual control. For the source code structure, the structure view also dynamically appears a "error" node in the top layer to display all syntax errors found in the prompt window.
Delphi 2005 Structure View
When checking the structure of the visual control, you can double-click the corresponding entry in the structure view to locate the corresponding control in the Form Designer. When you observe the structure of the corresponding HTML source code, you can double-click the corresponding entry. Go to the corresponding statement in the code sector.
Find results
Now when you perform a lookup, the result will be displayed in an intuitive tree control according to the file name group. You can browse them directly through the file, and you can also open the node to observe every corresponding point found in the corresponding file.
Tools panel
Now the positioning mechanism of the tool panel has been enhanced, you can immediately get a list of categories that only contain the starting letter with your input, you can enter the category list that you entries you entered with you. And you will highlight the letters you entered. And you can further filter when you continue to enter letters. Press the "Enter" button to place a currently selected control in the window in the designer.
Tool Panel Wizard
In addition to the display control (in the design view) or code summary (when in the code sector), the tool panel now displays a wizard when starting a new project in the object repository, and converts the category in the object warehouse into a tool. Category on the panel. This feature allows you to create new files, items, objects in the wizard with shortcuts.
2.2 Reconstruction
Reconstruction is a process of reorganizing the existing source code, making the code more easily reused and maintained without modifying the behavior and output of the code.
The Refactoring Support for Borland Delphi 2005 includes many useful features, "extraction methods" to declare new variables or fields, to extract a resource string, reappear to rename identifier and reset naming space and USES clause .
Delphi 2005 Reconstruction Menu Rename Number [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).
Although the code synchronization number allows you to rename an identifier in the selected source area, for a larger source code, Delphi 2005 reconstruction provides the Rename function to modify the identifier (such as field, method, attribute, Variables, etc.). Reconstruction dialogs can even make you browse all the references involved before reconstructing (this, you can verify all modified places) .This Feature Adds 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).
This intelligent reconstruction feature is fused into the lookup, replacement, but it is not only used in all identifiers that modifies the current range, and can only modify the code that is really associated with the selected identifier. For example, if you have one at the same time The method is called X and a local variable x, when you just want to modify the name of the method X, the retroactive name function ensures that the changes to the local variable x are ignored, as it can distinguish between variable x and method X is not the same .
Variable declaration [Delphi]
When you write code, you will not declare a variable, you will use it. Delphi 2005 Reconstruction allows you to use the Declare Variabl in the reconstruction to make such variables, it will display a dialog box to let you specify The variable corresponds to the statement of this variable to the current area.
This option is only available when the current variable has not declared. Of course, the strain is like this. This benefit is that it also allows you to concentrate on code and algorithm logic, without moving to the first end of the code to add a variable. Declaration. Variable declaration and error real-time prompt works well, when a high-brightly displayed no variable prompt appears in error, just simply right-click this variable to declare.
Field declaration [Delphi]
Similar to the variables that are not declared, Delphi 2005 reconstructs the reconstruction - Declare Field to allow you to give you a class declaration field. If you have conflict in the fields you want to declare within the scope, you have conflict, reconstruction A dialog will appear to let you resolve conflicts.
This feature will save a lot of time when the class extension increases, and will not force you to go to the class declaration section, and then manually define the field.
Take a method [Delphi]
Delphi 2005 Reconstruction Features Allows you to select a part of the source code (which may be repeated in several different places, or elsewhere need the same function), and turn this part of the code to a method, this reconstruction generation The method will automatically obtain the corresponding parameter list according to the declared variable, and the location of the selection of partial code will be replaced by the code of a call new reconstruction method. Segment a long code segment into several methods can improve the code. Reuse and maintainability.
Take a resource string [Delphi]
There is no more international multi-language support for some source code to implement some source code. Delphi 2005 Reconstruction Function now allows you to use the character string to generate resources (add some of your code implementation) Resource character declaration)
Import Namespace [Delphi / C #]
Sometimes you use classes, methods, fields, or types defined in other namespaces, in order to increase the corresponding namespace to the USES clause (relative to Borland Delphi) or Using clause (relative C #), Delphi 2005 Reconstruction provides a feature that automatically imports named space corresponding to the identifier. Refer to IMPORT NAMESPACE in the reconstruction.
This feature will make you save a lot of time to find namespace.
2.3 NUNIT / DUNIT unit test
Unit testing is a development method for increasing testing, which runs and verifies themselves by running test items, and generates reports according to the validity of the source code. The best effect, unit test should be properly applied, You should add the corresponding test unit to it (some people even think that you should write test code first, write the real code to test), the unit test also plays an important role in the reconstruction, if it is just In order to verify that the source code after the reconstruction has changed the original behavior, this is a correct choice. DUNIT / NUNIT
The unit test framework is also called an ultimate test framework, and the limit programming. Delphi 2005 includes Dunit (relative to Win32 and .NET) and NUnit. Dunit (http://dunit.sourceforge.net/) is the Delphi version of the unit test framework (At the same time adapt to Win32 and .NET), and NUnit (http://www.nunit.org/) is a unit test frame that is unrelated to the .NET language, which can be used on C # and Delphi for .NET at the same time.
Test project wizard
For each project, you can add a corresponding test item to the project group through the test project wizard. For the Delphi Win32 project, you will use the DUnit test framework. For the Delphi for .NET project, you can choose to use .NET The version of DUnit test framework, or select the NUnit test framework, and finally for the C # project, it will use the NUnit test framework. Dunit (corresponding to .NET and WIN32) and NUnit test framework provide to generate a graphical interface or control The way to perform the test results.
Test sample
In a test item wrap, you can use the test case guide to add a specific test case to test some of the units in the project. For each unit, you can choose the required class and method to increase to the test case. At the same time, an example of a test sample will be generated, so that you can refer to add your test code in the future.
Test operator
Just add test cases to the test project, you will generate an independent test running environment, you can start running related tests in the Delphi 2005 IDE, and observe the results. You can get all errors and run failures (if some The feedback report will stop when an error occurs, and the result is displayed on the console.
Using unit tests can help improve your code quality, maintainability, and reusability. Delphi 2005 IDE integrates unit testing makes it easier to implement unit testing.