Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Downloading Eclipse's Source Code [closed]

Tags:

java

eclipse

cvs

I'm doing a study on large Java projects and would like to view the source code for Eclipse. I have gone to this url (http://wiki.eclipse.org/index.php/CVS_Howto) and figured that the most useful cvs repository for me to look at would be this one:

:pserver:[email protected]:/cvsroot/eclipse (The Eclipse platform project)

However, when looking at this repository, it has so many modules! Which modules should I be trying to check out? I don't necessarily want to build the IDE from source, however, I just want to get the core Eclipse code base to perform some analysis. Would I just check out any modules starting with "org.eclipse..."? Should I be checking out any of the others?

Or is there an easier way to get the source? I read somewhere that you can get the source from the binary version of Eclipse but I am unsure where to find the source.

like image 546
digiarnie Avatar asked May 23 '10 05:05

digiarnie


People also ask

How do I download an Eclipse code?

For example, the Eclipse 4.2 version of the class you ask for is found here: IProcess. java. Show activity on this post. Using this link (see the "Building" and "cloning platform source tree" sections) from @Aaron Digulla here, this appears to be the way to download all Eclipse source code.

How do I disable JavaDoc and download sources in STS?

Progress is stuck in ... "download sources and javadoc" You can disable this in the Maven configuration: Window > Preferences > Maven > Disable "Download Artifact Sources" and "Download Artifact JavaDoc".

Can we install Eclipse without JDK?

Current releases of Eclipse require Java 11 JRE/JDK or newer. A Java Development Kit (JDK) includes many useful extras for Java developers including the source code for the standard Java libraries. Regardless of your operating system, you will need to install some Java virtual machine (JVM).

Why Eclipse is not opening in windows 10?

If you've installed Eclipse but are having trouble getting it to run, the most likely cause is that you have not correctly specified the JVM for it to run under. Eclipse startup is controlled by the options in $ECLIPSE_HOME/eclipse. ini. If $ECLIPSE_HOME is not defined, the default eclipse.


3 Answers

Just download the source tarball eclipse-cvs.tgz from here

EDIT: This also includes version history, so it may be larger than you need. For just a current version download Platform-SDK.3.5.2 ~ 100MB

It includes the sources in jar files e.g.

org.eclipse.ui.workbench_3.5.2.M20100113-0800.jar
org.eclipse.ui.workbench.source_3.5.2.M20100113-0800.jar
like image 157
stacker Avatar answered Oct 10 '22 06:10

stacker


For empirical studies, a good resource to check out is the Qualitas Corpus. It's a collection of open-source Java programs for use in empirical studies. In addition to having source code for a larger number of major projects (including Eclipse) they have multiple versions of each program, so you can track how code changes over time, if that's important. It's a respected corpus in the Software Engineering/Programming Languages research community, and so it may make your work more suitable for comparison in the future.

I'm not a part of their project, but I have used their corpus in a recent study. If you shoot them an email and tell them what your project is about, they'll give you http download access.

like image 44
Nels Beckman Avatar answered Oct 10 '22 05:10

Nels Beckman


I can only answer this bit:

Or is there an easier way to get the source? I read somewhere that you can get the source from the binary version of Eclipse but I am unsure where to find the source.

In eclipse/plugins/, the jars named *.source_*.jar contain source. For example, in my install:

org.eclipse.osgi_3.4.0.v20080605-1900.jar
org.eclipse.osgi.source_3.4.0.v20080605-1900.jar

The first jar contains the OSGi runtime, and the latter contains the corresponding source.

like image 31
Brett Kail Avatar answered Oct 10 '22 05:10

Brett Kail