How to quickly implement a delegate interface in Eclipse?

I only see two quick options for delegation.

One Source -> Generate Delegate Methods

. Thus, Eclipse implements all (or selected) delegate methods as delegate methods.

The other is Source -> Override/Implement Methods

. Thus, Eclipse implements all (or selected) methods of the interface as stub methods.

Both options are incomplete. First, it generates too many methods (it can generate those that are not in the interface). The second does not create good methods, only stubs.

Is it possible to combine both, i.e. generate all methods for the delegate principal but filter by interface?

+3


source to share





All Articles