In Practice

The following lab focuses on the refactoring capabilities of JBuilder. The exercise moves a class to a new package, renames a class, and renames a variable. After each refactoring, you run the application to verify that the application has not been broken.

Step 1: Opening the Example Project and Reviewing the Code

To open the example project,

1.
Select File, Open Project from the JBuilder menu.
2.
Locate the jbbook/ch07/refactoring/Refactoring.jpx file and click OK.
3.
The project opens in the Project pane. The project consists of three files in two packages. The project files are
  • moveExample.java— The file containing the moveExample class that is called by the main frame window. This file belongs to the package jbbook.ch007 ...

Get Borland® JBuilder™ Developer’s Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.