My favorites | Sign in
Project Home Downloads Issues Source
Project Information
Members

This provides refactoring tools for FlashDevelop. With it you can right-click any class member or local variable, and a new "Refactor" submenu will appear allowing you to find all references to, rename, or encapsulate the member.

Functionality/Limitations

Rename works on

  • functions
  • fields
  • getters/setters (simultaneously it seems)
  • local variables
  • function parameters
  • static and instance level

What Rename does NOT work on

  • Rename Classes or Constructors
  • Namespaces/packages
  • Check runtime references (e.g., myClassInstance["myMemberName"])
  • Check if you're renaming to a name that already exists
  • Check for an invalid new name (you could probably replace with a syntactically garbage name)

Find All References works/doesn't work in the same way as Rename, except you can also use it to find references to Classes/Constructors.

Encapsulate Field applies only to class fields. Works the same way as the existing getter/setter generator, except if the new property has a new name, then it will automatically redirect all references to the original field to point to the new property as well. If the new property has the same name as the old field (i.e., the generator renamed the field), no renaming happens as all the references are already implicitly pointing to the new property.

Any changes are made temporarily. The files will remain open and marked as changed, you would have to hit "Save All" afterward to commit these changes.

I've never touched FlashDevelop for other languages (HaXe, etc.), so if anyone wants to give those a shot, feel free! (note: the search for files is hard-coded for actionscript .as right now, so if the language uses something else, it won't work.)

Powered by Google Project Hosting