When developing Flex 2 applications, you'll work with many external components and Actioncript classes. In this scenario you'll have many packages/classes reference through your files.
It often happens that during the development phase you have to change some reference to package or the name of your classes, methods and variables.
When using Eclipse for Java developmet you have some tools that supports the refactoring :
- the Alt+Shift+R enables the Rename/Refactoring
- the useful Package Explorer (Window > Other > Java) that supports the refactoring and changes all the references to packages, class names and metods making a simple drag and drop action. Eclipse will take care of changing the package statement in the file and in all the other class files that refer to it
In Flex Builder 2 if you change tha name of your classes, the name of your MXML components or simply move files from one directory to another you'll have to make all changes manulayy :(
Using a search-and-replace operation could be dangerous and can change more than just the items you intended !






















On a positive note, it's all there in the Eclipse core all ready when Adobe decide to tap it.
Posted by: Tom Chiverton | September 15, 2006 at 04:06 PM
Bring it on. I've been spending a lot of time in Visual Studio 2005 recently and the refactoring tools are among my favorites for bringing sanity to my code and "retro-editing" for clarity when it is time to bring in other people on my projects. Somebody clever could make a plugin... scary stuff.
Posted by: spender | September 15, 2006 at 04:41 PM
so we have just to wait ;)
Posted by: Marco Casario | September 15, 2006 at 04:56 PM
There's a crapload of features in JDT that Flex doesn't have, Templates, Refractoring, Mark Occurance to name just a few! I really hope that Adobe is upddating Flex Builder with these things (for that product price you might want to expect some luxury, JDT after all is free!)
Posted by: sascha/hdrs | September 22, 2006 at 05:11 AM
I wrote about it on adobe's flex2 forums, flashdevelop, and others.... Seems like flex community is universe behind the others as they do not demand refactoring! They are requesting specific and mostly useless features, while still completely missing refactoring... Just wonder that FB supports CVS; probably adobe had no time to trim off this functinality from eclipse.
Posted by: Nick Evgeniev | October 24, 2006 at 04:09 PM