Watch, Follow, &
Connect with Us

Darren Kosinski

RAD Studio 2010 - Refactoring & Help Insight for Generics

Another enhanced feature in the RAD Studio 2010 and Delphi 2010 IDE is better support for Delphi generics. Both refactoring and Help Insight were updated to support generic types.

Refactoring

In Delphi 2010, it’s now possible to perform rename refactoring on generic type and method symbols:

Rename Generic

Rename Generic

Change Parameters refactoring lets you add or remove procedure or function parameters from a generic procedure type:

Change Parameters Refactoring

Change Parameters Refactoring

Extract Method refactoring will work in code that contains generics, too.

Help Insight

Help Insight now gives a bit more information for generic types, too. When you hover over a variable that is declared as an instance of a generic type, you’ll see the actual type details:

Help Insight for Generics

Help Insight for Generics

These are just a couple small changes that make it even easier to work with generic types in Delphi.

Posted by Darren Kosinski on August 7th, 2009 under C++Builder, Code Editor Features, Delphi, RAD Studio, ednfront |



5 Responses to “RAD Studio 2010 - Refactoring & Help Insight for Generics”

  1. Jan Says:

    I don’t find the Change parameters refactoring very useful. It is a lot easier just to add the parameter manually. However i think a "class update" shortcut (just like class completion shortcut) function would be nicer to have, if you have updated the parameter list in one place - and want to update it the other. That would be a lot easier than the Change Parameters function.

    Jan

  2. Joe White Says:

    The "Help Insight for Generics" screenshot is just bizarre. Why is it saying that TList is a nested type that’s declared inside TMainForm? There’s no "type TList = …" inside TMainForm, so the Help Insight is clearly wrong.

  3. Darren Kosinski (Embarcadero) Says:

    @Joe White: Help Insight is showing where this particular instantiation of TList comes from so it will be easier to determine what kind of data to expect, for example, from an element of FList.

  4. Delphi 2010 Preview! | 4DotNet Developers Blog Says:

    [...] Refactoring & Help Insight for Generics [...]

  5. Личная записная Says:

    [...]

Leave a Comment



Server Response from: BLOGS1