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:
Change Parameters refactoring lets you add or remove procedure or function parameters from a generic procedure type:
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:
These are just a couple small changes that make it even easier to work with generic types in Delphi.
Share This | Email this page to a friend
Posted by Darren Kosinski on August 7th, 2009 under C++Builder, Code Editor Features, Delphi, RAD Studio, ednfront |




RSS Feed

August 10th, 2009 at 1:13 am
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
August 12th, 2009 at 4:36 pm
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.
August 13th, 2009 at 2:06 pm
@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.
August 17th, 2009 at 11:53 am
[...] Refactoring & Help Insight for Generics [...]
August 25th, 2009 at 1:34 pm
[...]