Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » How to retrieve Eclipse source code without compiler errors?(eclipse source code debugging)
How to retrieve Eclipse source code without compiler errors? [message #671289] Tue, 17 May 2011 11:51 Go to next message
Dwight Johnson is currently offline Dwight JohnsonFriend
Messages: 19
Registered: March 2011
Junior Member
Hello,

sometimes I have the need to understand the Eclipse code better so I download certain eclipse plugins source code step in the debugger if I am lucky enough to be able to download a plugin that has no compiler errors.

If however I download the entire WTP from HEAD it has tens of thousands of compiler errors.

Where/how can I download Eclipse source for usage in debugger without compiler errors?

Should I download WTP and regular Eclipse in one workspace?

Thanks in advance.

(no subject) [message #671396 is a reply to message #671289] Tue, 17 May 2011 17:54 Go to previous messageGo to next message
David Williams is currently offline David WilliamsFriend
Messages: 176
Registered: July 2009
Senior Member
On 05/17/2011 07:51 AM, Dwight Johnson wrote:
> ...
>
> If however I download the entire WTP from HEAD it has tens
> of thousands of compiler errors.
>
> Where/how can I download Eclipse source for usage in
> debugger without compiler errors?
>
> Should I download WTP and regular Eclipse in one workspace?
>
Not sure how you define "the entire WTP", that's a lot!
But, assuming you really are getting (only) the released/distributed
bundles from HEAD, and
still seeing tens of thousands of errors, my guess it there are some
missing or mis-matched prereqs.

For HEAD code, the easiest way to get all the latest (matching)
pre-reqs, is to use the Java EE IDE package for Indigo M7, the most
recently built package, which would have most the pre-reqs in synch and
most of WTP.

If you are trying to do with Helios version, you really wouldn't want
HEAD anyway ... you'd want either R3_2_maintenance, or the exact version
that went into the build.

In either case, the easiest way to get started is to "Import", "Plugins
and Fragments", "from active target platform" (which should be entire
Java EE IDE, and -- here's the important part -- check the "Projects
from a repository". This makes use of a special tag in the bundle that
says exactly where it came from and which tagged version was used in
that build (but, does give the choice to get HEAD version instead, if
that's really what you want). This feature of Eclipse IDE (PDE) also
makes it easier to "start off small", getting just a few of the bundles
you are interested in, and adding more later if you find you need them.
To try and "get everything" wouldn't normally be a good thing to do
(there's so much).

But, if that's how you are getting source, and still getting tens of
thousands of errors ... then probably just a mis-match of versions too
far from HEAD version.
Re: (no subject) [message #671523 is a reply to message #671396] Wed, 18 May 2011 08:13 Go to previous messageGo to next message
Dwight Johnson is currently offline Dwight JohnsonFriend
Messages: 19
Registered: March 2011
Junior Member
David, thanks for your time!

The entire WTP is indeed a lot (more than 2GB), but if you don't know in advance what you need and what you don't need, there is not much choice.

Currently I am working on a plugin for Eclipse/Helios that is supposed to offer a development environment (adapted project, perspective, code completion and templates) for static webcontent (xhtml, js and css) with reduced/modified syntax as compared to standard web projects. And is precisely what I want to achieve: offer css/js/xhtml templates of my own, visibly in TemplatesView, with my templates stored in my plugin. My problem is that in contrast to the java editor, the css, js and xhtml editors do not display templates in the standard TemplatesView via Window/Show View/Other/Templates (although sttrangely there are templates defined, see Windows/Preferences). The templates view simply says 'No templates available'. So I need to find out what is happening via the debugger.

There are some vague pointers to be found on the web, like this, stating that I should provide for an adapter:
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/reference/api/org/eclipse/ui/texteditor/te mplates/TemplatesView.html

I was able to get the debugger into TemplatesView.doCreatePage...
http://www.google.com/codesearch/p?hl=nl#smBcNx65Jqw/src/org /eclipse/ui/texteditor/templates/TemplatesView.java&q=te mplatesview&sa=N&cd=1&ct=rc
...seeing that for java ITemplatesPage was indeed not null, in contrast to the other editors, but I could not get deeper into the code, because of the compiler errors, so I need the eclipse code without compiler errors.

You advise me to download 'R3_2_maintenance' but when I google that I find:
http://dev.eclipse.org/viewcvs/viewvc.cgi/platform-launcher/ library/win32/eclipseWin.c?view=log&pathrev=R3_2_mainten ance
.. with dates 2005/2006. That cannot be right.

The only access I have to CVS is this:
http://wiki.eclipse.org/CVS_Howto
:pserver:anonymous@dev.eclipse.org:/cvsroot/webtools
:pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse

In my CVS perspective I see:
HEAD
Branches (as an end node)

...ah wait, 'Branches' has a context menu with 'Refresh Branches' that leads me to your R3_2_maintenance branche. I will check that out to see if I can get rid of these compiler errors. I will get back...

[Updated on: Wed, 18 May 2011 08:19]

Report message to a moderator

Re: (no subject) [message #671565 is a reply to message #671523] Wed, 18 May 2011 10:35 Go to previous messageGo to next message
Dwight Johnson is currently offline Dwight JohnsonFriend
Messages: 19
Registered: March 2011
Junior Member
Problem solved:

- Open CVS connection via CVS perspective:
:pserver:anonymous@dev.eclipse.org:/cvsroot/webtools

- Right click on Branches, select Refresh Branches

- Select the projects you need

- click Finish

- Under Branches select (in my case) R3_2_Maintenace

- select projects, right click and select 'Check out'

Done

After deleting all the tests I had merely 13 errors left, all in XML/XSD.Should not hinder my debugging efforts.


Thanks David!
Re: (no subject) [message #673956 is a reply to message #671565] Wed, 25 May 2011 09:34 Go to previous message
Dwight Johnson is currently offline Dwight JohnsonFriend
Messages: 19
Registered: March 2011
Junior Member
In my previous post I wrote that my problem was solved, but later I discovered there where still errors and incompatibilities but today I found a solid solution for the problem of debugging eclipse helios source code:

http://eclipsesource.com/en/downloads/eclipse-helios-download/

I downloaded these 7 bundles:

eclipse-java-helios-SR2-win32-x86_64
eclipse-javascript-helios-SR2-win32-x86_64
eclipse-jee-helios-SR2-win32-x86_64
eclipse-modeling-helios-SR2-incubation-win32-x86_64
eclipse-rcp-helios-SR2-win32-x86_64
eclipse-reporting-helios-SR2-win32-x86_64
eclipse-SDK-3.6.2-win32-x86_64

I extracted the eclipse-sdk bundle and next merged the remaining 6 bundles into one helios install including source code. Now it seems that I have a solid installment for debugging eclipse source code without having to worry about missing plugins. It is all there.
Previous Topic:Web service event handler
Next Topic:Load external file
Goto Forum:
  


Current Time: Sun Nov 23 16:12:12 GMT 2014

Powered by FUDForum. Page generated in 0.02592 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software