Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-ui-dev] release 2 refactorings to cvs

1. Pull Up Methods refactoring - to activate, select a set of methods
belonging to the same type and choose 'Pull Up...' from the context menu or
'Pull Up Methods...' from the global 'Refactor' menu. Then, select the
methods that you want to delete (in subclasses of the class you are pulling
the methods to.) You are reponsible for choosing only those methods that
have the same behavios as those you are pulling up.

2. Reorder Method Parameters refactoring - to activate, select a method that
has more than 1 parameter and choose 'Reorder Parameters...' from the
context menu or 'Reorder Method Parameters...' from the global 'Refactor'
menu. Then, specify the new parameter order. This operation is not behavior
preserving if expressions used to compute values passed as parameters have
side effects.
The order of parameters will be changed also in all methods
overriding/implementing the one you selected.

they're still work-in-progress
any input on their semantics (and bugs) is very welcome

(i added tests of course as well)
a.



Back to the top