dk.brics.automaton  |  dk.brics.grammar  |  dk.brics.schematools
JSRefactor  |  Artemis  |  TAJS  |  Java String Analyzer  |  XSLT Validator  |  ServletValidator  |  XSugar  |  Xact  |  JWIG
MONA  |  PALE

JSRefactor - refactoring for JavaScript

This plugin is part of a research prototype developed to experiment with the technique presented in the paper Tool-supported refactoring for JavaScript published at OOPSLA'11. It is not ready for production use.

Currently, the integration with Eclipse has some noteworthy limitations: The underlying framework imposes other drawbacks that you should be aware of: To try the plugin, follow these instructions:
  1. Read the limitations above and make sure you understand them.
  2. Add this update site to Eclipse: http://cs.au.dk/~jhckragh/update/
  3. Install the plugin available from the update site. It may take a long time for Eclipse to resolve its dependencies.
  4. Open a JavaScript file in Eclipse's JavaScript editor.
  5. These three refactorings should now be available from the menu called "Refactoring":
    • Rename property (do not confuse with the existing refactoring simply called rename)
    • Encapsulate property
    • Extract module
    At the time of writing, the refactorings are not available in the right-click menu, nor do they have shortcuts.
Please send questions and comments to asf@cs.au.dk;amoeller@cs.au.dk.