Quick way to add the signature of an inherited method using Eclipse
I know there is a feature "Add unimplemented methods" in case one implements a Java interface. I would like to know if there is a way to开发者_开发知识库 select a couple of the inherited methods and generate their signatures automatically as in the previously mentioned case. I have to mention that I'm using Eclipse Helios for Java.
Sure, here's how:
Right click -> Source -> Override/Implement Methods
Apart from what aioobe said, you can take advantage of a feature called code completion. Simply hold Ctrl+Space and a menu will appear with methods you may wish to override. Depending on what you are doing, this could be faster than the other solution mentioned.
精彩评论