Author:  Mike Atkinson Software
Release Notes
Download
Contributors

Previous Page

Software::JRefactory - JBuilder IDE

Next Page

JBuilder Extension

Starting with release 2.4.31, this software also plugs into JBuilder 3.0 Foundation and 3.5 and later releases. To install the software into JBuilder 3.0 Foundation and later releases, place the jrefactory.jar file into the lib/ext directory.

The software creates a new menu called JRefactory, and all the functions are under that. The pretty printer can be accessed by pressing Control+Shift+P. The extract method function can be accessed with Control+Shift+E.

A powerful new feature has been added to JBuilder. If you select the JRefactory top level menu, you will notice that there is a new menu item: Refactorings. Under this, it lists the different refactorings that are available for the system. Some options will be greyed out depending on the location of the cursor. To perform a method refactoring, place your cursor in the method you wish to change. Then select JRefactory -> Refactorings -> Method Refactorings -> Specific refactoring. Similarly you can put the cursor on a field to invoke the field refactorings.

The type refactorings are available on the Refactoring menu as described above as well. But you can also do the type refactorings by selecting on one or more of the files in the project view. Then right click on one of the selected files and you have the JRefactory menu item. This menu item expands to a list of type level refactorings.

To preform the refactorings, the metadata must be loaded. When you select one of these menu items, the system will launch the metadata loader process. Please be patient and let it complete before you press the OK button to complete the refactorings. In fact, it is a good idea to manually load the refactorings before selecting the refactorings from these menus.

The current version of software waits to load the meta data until directed to do so by the user. Please be sure to close all class diagrams before you exit JBuilder to insure a quick start to JBuilder.

Previous Page

Last Modified: October 7, 2003

Previous Page