This page is likely outdated. Visit the new documentation for updated content.

Description

Refactoring means changing the code without breaking it. But that doesn’t mean that the IDE should automatically change all code without letting the user know how the new code looks like.

How it should work

Each refactoring dialog should have a “preview� button. And then a preview of the refactoring should be showed where the user can select “commit� or “cancel�. This gives more control over the refactoring. And it helps to make refactoring bugs more obvious.

As well it doesn’t make things more complicated for the user because he can choose not to view the preview.

Implementation

The current refactoring infrastructure needs to be changed. The commands should not longer make the actual changes. Instead they need to give back a list of replace operations.

Should not take longer than 2-3 days to implement.

Side effects: All parts that use the refactoring commands need to be changed. This will affect for example the implement & override members dialog.

Proposals