Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I browse JDT source code in eclipse?

My current attempt to browse the JDT source code in eclipse:

  • installing Eclipse Helios RCP version.
  • importing all plugins from installation as binary files into my workspace

It does not work.

like image 448
Skiy Avatar asked Sep 19 '10 11:09

Skiy


People also ask

What is Eclipse JDT core?

JDT Core is the Java infrastructure of the Java IDE. It includes: An incremental Java compiler. Implemented as an Eclipse builder, it is based on technology evolved from VisualAge for Java compiler. In particular, it allows to run and debug code which still contains unresolved errors.


2 Answers

Install the "Eclipse SDK" feature from the Eclipse Project Updates update site: enter image description here

like image 95
Eli Acherkan Avatar answered Sep 28 '22 11:09

Eli Acherkan


You can follow Vogella's "Eclipse Source Code - Tutorial", especially the section "Import Plugins"

how you can import Eclipse plugins from your Eclipse installation to review the code.
The Eclipse distribution contains the source code for the core Eclipse projects, e.g. JDT.
For other Eclipse projects you usually find a "SDK" bundle on the project update side which contains the source code.

To avoid "pollution" of your existing workspace, switch to a new workspace and select File -> Import. Select "Plug-ins and Fragments".

alt text

Make the following settings.
Select "Binary projects". In Binary project you can read the source code but you cannot change it. They will also not be compiled therefore this setting will save memory and performance.

alt text

Add all plugins you would like to import and press "Finish".

alt text

like image 31
VonC Avatar answered Sep 28 '22 13:09

VonC