我有一个实现数字接口的类。部分内容如下:
class Z implements A, B, C, ... {
@override
public void foo( Bar b ) {
...
}
有没有办法,最好是一种快捷方式,向Eclipse询问foo
方法的接口是什么?
(注意:使用Eclipse版Juno)
答案 0 :(得分:5)
方法覆盖旁边的边距应该有一个小箭头。点击它。
我不确定是否有相关的键盘快捷键。
答案 1 :(得分:4)
从班级的任何位置按 CTRL + F3 + F3 。
此处foo1
来自Inter1
,foo2
来自Inter2
。
更新:(供参考)
public class Impl implements Inter1, Inter2 {
@Override
public void foo() {
// TODO Auto-generated method stub
}
@Override
public void foo1() {
// TODO Auto-generated method stub
}
}
public interface Inter1 {
void foo1();
}
public interface Inter2 {
void foo2();
}
答案 2 :(得分:0)
试试这个,真有帮助......
按Ctrl + f3 + f3