New ActionScript/Flex Refactoring: Push Members Down
Wednesday, November 25th, 2009In addition to other refactorings, Maia also has this useful refactoring: push members down the classes hierarchy.
Again, let’s try it on a simple example.
In addition to other refactorings, Maia also has this useful refactoring: push members down the classes hierarchy.
Again, let’s try it on a simple example.
Next Maia’s EAP will bring you new refactoring that helps to be more productive when coding ActionScript or Flex.
Now you can easily move static methods, properties, fields and constants between AS classes and Mxml components: just place caret on a member (or a reference to it) and hit F6 (Move action).
Next version of IntelliJ IDEA, code named Maia, brings you several new JavaScript and ActionScript refactorings. In this post we showcase one of them — Inline Variable, which works with local variables and ActionScript class fields.

Pressing Control+Alt+N (default Windows keymap) replaces variable occurrences with an initializing expression.

During the inline process, IntelliJ IDEA checks if a variable can be safely replaced and warns if, for example, there are its usages inside a functional expression.
By the way, the Inline Variable refactoring also works in the left part of local variable assignment.
Enjoy developing with pleasure!