How to install and use the GrepCode plug-in Eclipse

Source: Internet
Author: User
Document directory
  • The GrepCode (GC) Eclipse plug-in allows Eclipse users to search for factory classes provided by GrepCode in Eclipse IDE. This tutorial describes how to install and use the plug-in. Use Eclipse3.5 (Galileo) screeshots. Similar steps can be followed with Eclipse 3.4.x (Ganymede ).
  • System Requirements
  • Update Website location
  • Install
  • Usage
The GrepCode (GC) Eclipse plug-in allows Eclipse users to search for factory classes provided by GrepCode in Eclipse IDE. This tutorial describes how to install and use the plug-in. Use Eclipse3.5 (Galileo) screeshots. Similar steps can be followed with Eclipse 3.4.x (Ganymede ).
  • System Requirements
  • Update Website location
  • Install
  • Usage

For more information, see GrepCode IntelliJ IDEA Plugin.

System Requirements

GC plug-ins are compatible with the following versions of Eclipse

  • 3.5.x (Galileo)
  • 3.4.x (Ganymede)
  • 3.3.x (Europa)
Update Website location

The update URL of the GrepCode plug-in is as follows:

Http://repository.grepcode.com/java/ext-eclipse/

Install

The GC plug-in of Eclipse is the same as any other Eclipse plug-ins. you can install it by following these steps:

  1. Help-> Install new software.

  2. Click the "Add..." button and enter the update URL http://repository.grepcode.com/java/ext-eclipse/ for Name and GrepCode
  3. Click "Next" to go to the "Install Details" page.

  4. Accept the license description and click "Finish.

 

Usage

After successfully installing the GC plug-in Eclipse through the above steps, we can use it to browse the source code in the Open Source library used in our code. The example is as follows:

  • Suppose you are working on a project involving an Open Source library, such as JGroups. Your project registration serves as the JGroups-all.jar on which it depends (that is, assuming that a class in an open source code library such as JGroups is used in your project), as shown below.

  • The "JChannel" Class in the JGroups class library used in the "JGroupsTest" project. When we press the F3 key on the "JChannel" Class to view the source code of the "JChannel" Class, we will find that the "Source code not found" prompt in the "Class File Editor ", we can only browse the description of "JChannel", not the source code of the "JChannel" class we want to see.

  • Although we do not see the "JChannel" Class source code in the "Class File Editor" view, we can click the "GC Search" button on the tool panel, use the GC plug-in to search for the "JChannel" class in GrepCode. The Search result is displayed on the "GC Search" Tab of IDE.
  • Now we can select the source code version corresponding to our project to view the source code of the "JChannel" class.

  • You can also use the shortcut key "Ctrl + M" to maximize the "Class File Editor" window so that we can easily read the source code.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.