开发者

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

Quick way to add the signature of an inherited method using Eclipse


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜