[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Re: New Interface Refactor?

Grant Forrester wrote:
Hi,

Apologies if this is the wrong forum. I've had an idea for a new re-factoring. I'd like opinions on.

A problem that often arises is a programmer removes an interface from the 'implements' clause of a class. They then wish to remove the then redundant methods from the class. In order to do so they must first familiarise themselves with the interface in question and then pick through the class removing the method implementations. This is laborious and fraught with error especially if the interface was onerous.

A better solution would be...
- User highlights class name
- Selects Refactor | Remove Interface
- Dialog appears allowing user to select from list of currently implemented interfaces which to remove.
- Dialog also contains checkbox for 'Retain explicitly referenced methods'.
- Dialog has Preview, OK and Cancel.


On clicking OK the interface is removed from the 'implements' clause and removes all the methods from the class matching the interface method signatures.

Does anybody else think this is a good idea?
Has anybody done this or know of plans to include it in future versions?

Regards
Grant


See https://bugs.eclipse.org/bugs/show_bug.cgi?id=24379

HTH
Benno