开发者

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

开发者 https://www.devze.com 2023-03-14 01:24 出处:网络
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

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

精彩评论

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