转:eclipse技巧之快速生成Override函数

转自:

http://www.cnblogs.com/junqilian/archive/2013/03/15/2960277.html

 

小提示:Eclipse 中快速实现或Override基类或接口中的方法

刚刚用Eclipse好多操作还不熟悉,不过Eclipse IDE是以强大的代码编辑和重构能力而闻名的,从Visual Studio的使用经验来看,一定是可以自动生成接口中方法签名的。比如下面的代码:

public class Magpie extends Activity implements MapEventsReceiver, LocationListener {
//...
}

要快速生成上述MapEventsReceiver, LocationListener两个接口的方法框架,肯定是不需要自己老老实实敲代码的.只需要在上面点右键,选择source –> Override/Implement Methods.. 即可弹出对话框:

image

勾选需要生成的方法,即可自动生的代码框架,简单,快速!

原文地址:https://www.cnblogs.com/jhj117/p/5467515.html