您的位置:首页 > 博客中心 > 网络系统 >

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

时间:2022-04-03 10:37

本文介绍两个在Eclipse调试与跟踪过程中的两个实用插件 他们都可以在 ?下载 该网址还包含了另外两个项目,以及一份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.

 

 

该插件是一个非常实用的插件。下面给出一个介绍如何使用它的链接:

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

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

本类排行

今日推荐

热门手游