Refactoring support

The goal of refactoring (behavior-preserving program transformation) is to make a system-wide code change without affecting the behavior of the system. The JDT provides assistance for managing refactorings.

The JDT supports a number of transformations (e.g. Extract Method, Inline Local Variable) described in Martin Fowler's book Refactoring: Improving the Design of Existing Code, Addison Wesley 1999.

When performing a refactoring operation, you can optionally preview all the impending changes resulting from a refactoring action before you choose to carry them out. Thus, you can execute a refactoring in one of two ways:

Refactoring commands are available from the context menus of several Java views (e.g. Package Explorer, Outline) and editors.

Related concepts
Java development tools (JDT)

Related tasks
Refactoring
Refactoring without preview
Refactoring with preview
Previewing refactoring changes
Undoing a refactoring operation
Redoing a refactoring operation

Related reference
Refactoring actions
Refactoring wizard
Refactoring preferences
Extract Method Errors

 Copyright IBM Corporation 2000, 2002. All Rights Reserved.