如何在Eclipse中找到重写的方法? [英] How to find the overridden method in Eclipse?
问题描述
当我在eclipse java中查看方法时,如何跳转到它覆盖/扩展的方法?
When I am looking at a method in eclipse java, how do I jump to the method it overrides/extends?
推荐答案
三种解决方法。
在悬停时按CTRL
您应该看到一个名为 Open Super Implementation的选项。单击它!
You should see an option called 'Open Super Implementation. Click it !
来自 此处 :
From here :
要获得奖励积分,您可以设置键盘快捷方式来做到这一点:
And for bonus points, you can setup a Keyboard shortcut to do this like so :
当您尝试设置键盘快捷键时,可以通过键入<$ c $进行过滤c>打开超级即时贴。在我的Eclipse Indigo上发现了三场比赛。我尝试一个接一个地设置它们,直到快捷方式出现在 Navigate->中。像这样打开超级实现
:
When you try to setup a keyboard shortcut, you may filter by typing Open Super Im
. On my Eclipse Indigo three matches were found. I tried setting them one by one until the shortcut appeared in Navigate -> Open Super Implementation
like so :
单击垂直标尺中出现的ovverride标记就像上面的快照一样。
Click the ovverride marker that appears in the Vertical Ruler as in the above snapshot.
这篇关于如何在Eclipse中找到重写的方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!