| Summary: | Add ability for users to implement a interface..... | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Jalpesh <jpatadia> |
| Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | Keywords: | helpwanted |
| Version: | 2.1 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Jalpesh
worksforme on M3 - do you have the 'inherited abstract methods' checkbox selected? The Implement Interface is a nice idea. But given the current schedule this will very likely not happen for 2.1. Since it is an isolated feature it might be a good third party opportunity. Interested ? >> worksforme on M3 - do you have the 'inherited abstract methods' checkbox >> selected? My mistake, you're right I did not have that checkbox clicked. Once I had that checked, the methods in the interface were generated correctly. On a side note, I think the naming of this checkbox should be changed to something like "inherit methods/implement interface" (or add another checkbox for implementing interfaces) so that it's clear to the user what it'll do. When I looked at the checkbox, I thought it will be used only for the methods in the class I extend for and not for the implemented interface. >> The Implement Interface is a nice idea. But given the current schedule this >> will very likely not happen for 2.1. >> Since it is an isolated feature it might be a good third party opportunity. >> Interested ? Sure, if you can point me to where to change that I'd definately take a look. I'm not very familiar with SWT (nor I am familiar with the eclipse code base), but hopefully this shouldn't be too much of a problem. thanks, jalpesh. Thanks, Jalpesh. A good starting point is the current Override/Implement Methods... code. The main entry point is the OverrideMethodsAction. This action then uses the AddUnimplementedMethodsOperation to actually add the unimplemented methods. An action "ImplementInterfaceAction" could reuse the AddUnimplementedMethodsOperation. Beside adding the new method stubs the type declaration has to be changed as well so that the class implements the new interfaces. Reopening... There are two ways to implement an interface: - using quick fix - using Override/Implement methods. Besides this no further action is planned in Eclipse. But if someone contributes the code.... |