Extract Method dialog box

This is a feature of JBuilder SE and Enterprise.

You use the Extract Method dialog box to turn a selected code fragment into a method. To display this dialog box, select the fragment of code you want to extract, right-click, and choose Extract Method.

Note: If the set of statements to extract is not completely selected, JBuilder will attempt to expand the selection out to the nearest enclosing statement.

Method Name

The new method the code fragment will be placed in.

Statements

The selected statements. This is read-only.

OK

Completes the refactoring. The refactoring is automatically completed.

Choose Edit|Undo to undo the changes.

See also