Eclipse 之grepcode 插件使用

GrepCode Eclipse Plugin The GrepCode (GC) plugin for Eclipse allows Eclipse users to access the search facilities provided by GrepCode without leaving the IDE. This tutorial describes how to install and use the plugin. The screeshots were taken using Eclipse 3.5 (Galileo). Similar steps can be followed with Eclipse 3.4.x versions (Ganymede).

System Requirements

The GC plugin is compatible with the following Eclipse versions:
  • 3.5.x (Galileo)
  • 3.4.x (Ganymede)
  • 3.3.x (Europa)

Update Site Location

    The GrepCode plugin update site is located at    http://repository.grepcode.com/java/ext-eclipse/

Installation

The GC plugin may be installed, as any other Eclipse plugin, by applying the following steps:
  1. Install new software.

  2. Click on the "Add..." button and point your Eclipse IDE to the GrepCode plugin update site:          http://repository.grepcode.com/java/ext-eclipse/

  3. Click on the "Next" button in the "Install Details" page.

  4. Accept the license and click on the "Finish" button in the license page.

Usage

Once the GC plugin has been installed, you can use it to browse the source code of open source libraries, that you use in your project development.      Here is an example to illustrate this:
  • Assume that you are working on a project that involves an open source library, such as JGroups.              Your project registers jgroups-all.jar as its dependency, as shown below.

  • Your class "JGroupsTest" makes use of JGroups classes, such as "JChannel".              If you press F3 on "JChannel", you get the "Class File Editor" view which allows you to browse the outline of "JChannel" but not its source code.

  • Fear not :-) While in the "Class File Editor" view, you can just click on the "GC Search" button on your tools panel to ask the GC plugin to search within              GrepCode for the "JChannel" class. The results of the search are shown in the "GC Search" tab that opens within your IDE.

  • You can now select the version (2.8.0.CR4, 2.8.0.CR3, etc.), that applies to your project, to see the "JChannel" source code.

  • You can also expand the "GC Search" tab to more conveniently review the "JChannel" source code and the rest of the related views provided by GrepCode,              without leaving your Eclipse IDE.

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值