介绍两个Eclipse插件: Implementors & Call Hierarchy

介绍两个Eclipse插件: Implementors & Call Hierarchy

本文介绍两个在Eclipse调试与跟踪过程中的两个实用插件
他们都可以在 http://eclipse-tools.sourceforge.net/ ?下载
该网址还包含了另外两个项目,以及一份Eclipse的 reference card.

------------------------------------------------------------------

一: Implementors

插件功能:在eclipse中查找并定位类时,可以选择直接定位到接口或者定位到接口的实现。
使用方法:选择类(接口)或者类(接口)的方法,单击右键,选择Open Interface,直接定位到接口;选择Open Implementation,直接定位到实现类,如果有多个实现类就会出现一个选择框,选择具体的某个实现类。

插件介绍:

The Implementors plugins add the possibility to jump to the implementation of of an interface. Alternatively, you can jump to the interface of an implementation.

The jumping to implementation/interface works for plain Java files. In addition, when associating EJB deployment descriptors with a project, the plugin is made aware of the connection between the EJB interfaces and the implementation class, something which is not specified in the implementation class itself.

 

 

该插件是一个非常实用的插件。下面给出一个介绍如何使用它的链接: http://dev2dev.bea.com.cn/bbsdoc/20060124188.html


ps. Eclipse右键菜单中有两个选项,Open Type Hierarchy / Quick Type Hierarchy,? 功能与这个插件类似, 看来这个功能已经被集成到Eclipse中了。

------------------------------------------------------------------


二: Call Hierarchy

Call Hierarchy插件: 显示一个方法的调用层次,可以从中看到它被哪些方法调用了,以及它调用了哪些方法,是代码追踪比较实用的工具。Eclipse 3.1中也已经集成有这个功能了。

转载于:https://www.cnblogs.com/welhzh/p/4645601.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
安装Eclipse插件时,有两种方式可供选择。一种是直接下载插件(implementors package)然后手动安装Eclipse中,另外一种就是在Eclipse中直接使用Eclipse update site。如果您使用的是后者,可能会遇到Eclipse在线安装插件超级慢的问题。为了解决这个问题,您可以尝试以下方法:参考资料:Ten Tips for Installing Plugins in Eclipse Galileo。 1. 在Eclipse中打开Window -> Preferences -> Install/Update -> Available Software Sites,删除所有不必要的站点,只保留必要的站点。 2. 在Eclipse中打开Window -> Preferences -> Install/Update -> Available Software Sites,将所有站点的“Update Policy”设置为“Never”。 3. 在Eclipse中打开Window -> Preferences -> Install/Update -> Available Software Sites,将所有站点的“Mirrors”设置为“Manual”。 4. 在Eclipse中打开Window -> Preferences -> Install/Update -> Available Software Sites,将所有站点的“Protocol”设置为“HTTP”。 5. 在Eclipse中打开Window -> Preferences -> Install/Update -> Available Software Sites,将所有站点的“Verify”设置为“Never”。 6. 在Eclipse中打开Window -> Preferences -> Install/Update -> Available Software Sites,将所有站点的“Timeout”设置为“30000”。 7. 在Eclipse中打开Window -> Preferences -> Install/Update -> Available Software Sites,将所有站点的“Retry Attempts”设置为“1”。 8. 在Eclipse中打开Window -> Preferences -> Install/Update -> Available Software Sites,将所有站点的“Retry Interval”设置为“1000”。 9. 在Eclipse中打开Window -> Preferences -> Install/Update -> Available Software Sites,将所有站点的“Max Connections”设置为“5”。 这些方法可以帮助您解决Eclipse在线安装插件超级慢的问题。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值