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:
- Help-> Install new software.
- Click the "Add..." button and enter the update URL http://repository.grepcode.com/java/ext-eclipse/ for Name and GrepCode
- Click "Next" to go to the "Install Details" page.
- 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.