Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How do I find the appropriate Eclipse Git repository?
How do I find the appropriate Eclipse Git repository? [message #987685] Tue, 27 November 2012 15:25 Go to next message
Brian Vosburgh is currently offline Brian VosburghFriend
Messages: 137
Registered: July 2009
Senior Member
Is there any easy way to determine the Git repository for a particular Eclipse (Platform, EMF, WTP, etc.) class?

That is: When I am debugging a Dali plug-in and I have a problem with some code in a prerequisite Eclipse plug-in (e.g. in an org.eclipse.ui class), I would like to clone that class's Git repository, import the appropriate project, modify the code, and test my changes. In the end I might have a patch to contribute. :-)

The most difficult part of this scenario is finding the appropriate Git repository(!). Determining a class's plug-in is not too difficult. (The easiest way I have found is selecting the class in, for example, the Outline view and the class's plug-in jar will be displayed in the status bar.) But I have not figured out any easy way to find the appropriate Git repository. What I have done in the past is go to the list of Eclipse Git repositories at git.eclipse.org, make a reasonable guess at which repository might contain the class I am interested in and dig down into the repository's source tree, looking for the class. A bit brute-force and slow....

Any ideas on how to more quickly find a particular class's repository?
Re: How do I find the appropriate Eclipse Git repository? [message #987703 is a reply to message #987685] Tue, 27 November 2012 16:40 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 27.11.2012 16:25, Brian Vosburgh wrote:
> Is there any easy way to determine the Git repository for a particular
> Eclipse (Platform, EMF, WTP, etc.) class?
>
> That is: When I am debugging a Dali plug-in and I have a problem with
> some code in a prerequisite Eclipse plug-in (e.g. in an org.eclipse.ui
> class), I would like to clone that class's Git repository, import the
> appropriate project, modify the code, and test my changes. In the end
> I might have a patch to contribute. :-)
>
> The most difficult part of this scenario is finding the appropriate
> Git repository(!). Determining a class's plug-in is not too difficult.
> (The easiest way I have found is selecting the class in, for example,
> the Outline view and the class's plug-in jar will be displayed in the
> status bar.) But I have not figured out any easy way to find the
> appropriate Git repository. What I have done in the past is go to the
> list of Eclipse Git repositories at git.eclipse.org, make a reasonable
> guess at which repository might contain the class I am interested in
> and dig down into the repository's source tree, looking for the class.
> A bit brute-force and slow....
>
> Any ideas on how to more quickly find a particular class's repository?
>
At least the bundles from the SDK have the 'Eclipse-SourceReferences'
header in their manifest, so you can simply check the manifest of the
bundle where the class comes from. Also, if you know the bundle you can
use File > Import > Plug-ins and Fragments, and choose 'Projects from a
repository'.

Dani
Re: How do I find the appropriate Eclipse Git repository? [message #987733 is a reply to message #987703] Tue, 27 November 2012 19:24 Go to previous messageGo to next message
Brian Vosburgh is currently offline Brian VosburghFriend
Messages: 137
Registered: July 2009
Senior Member
Dani Megert wrote on Tue, 27 November 2012 11:40

At least the bundles from the SDK have the 'Eclipse-SourceReferences'
header in their manifest, so you can simply check the manifest of the
bundle where the class comes from. Also, if you know the bundle you can
use File > Import > Plug-ins and Fragments, and choose 'Projects from a
repository'.


Ahh, that sounds great. Thanks, Dani.

The 'Eclipse-SourceReferences' header is very helpful, if it's there. :-)

But: The "Import...Projects from a repository" would only list bundles that are in a CVS repository; e.g.

Eclipse-SourceReferences: scm:cvs:pserver:dev.eclipse.org:/cvsroot/too
ls:org.eclipse.orbit/javax.activation;tag=v201108011116

None of the bundles stored in Git were listed. Is this a bug? Or am I missing something?
Re: How do I find the appropriate Eclipse Git repository? [message #987788 is a reply to message #987733] Wed, 28 November 2012 07:46 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 27.11.2012 20:24, Brian Vosburgh wrote:
> Dani Megert wrote on Tue, 27 November 2012 11:40
>> At least the bundles from the SDK have the 'Eclipse-SourceReferences'
>> header in their manifest, so you can simply check the manifest of the
>> bundle where the class comes from. Also, if you know the bundle you
>> can use File > Import > Plug-ins and Fragments, and choose 'Projects
>> from a repository'.
>
>
> Ahh, that sounds great. Thanks, Dani.
>
> The 'Eclipse-SourceReferences' header is very helpful, if it's there. :-)
>
> But: The "Import...Projects from a repository" would only list bundles
> that are in a CVS repository; e.g.
>
> Eclipse-SourceReferences: scm:cvs:pserver:dev.eclipse.org:/cvsroot/too
> ls:org.eclipse.orbit/javax.activation;tag=v201108011116
>
> None of the bundles stored in Git were listed. Is this a bug? Or am I
> missing something?
I suspect you are still on an older version of Eclipse and EGit. I
suggest you switch to Juno SR1 (4.2.1):
http://www.eclipse.org/downloads/

Dani
Re: How do I find the appropriate Eclipse Git repository? [message #988211 is a reply to message #987788] Wed, 28 November 2012 20:22 Go to previous messageGo to next message
Brian Vosburgh is currently offline Brian VosburghFriend
Messages: 137
Registered: July 2009
Senior Member
Dani Megert wrote on Wed, 28 November 2012 02:46
I suspect you are still on an older version of Eclipse and EGit. I
suggest you switch to Juno SR1 (4.2.1)


Sorta. I am using 3.8.1 (4.2 performance was unbearable) with EGit added. So, I will look forward to that feature when I finally move to e4. :-) Thanks, Dani.
Re: How do I find the appropriate Eclipse Git repository? [message #988306 is a reply to message #988211] Thu, 29 November 2012 10:37 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 28.11.2012 21:22, Brian Vosburgh wrote:
> Dani Megert wrote on Wed, 28 November 2012 02:46
>> I suspect you are still on an older version of Eclipse and EGit. I
>> suggest you switch to Juno SR1 (4.2.1)
>
>
> Sorta. I am using 3.8.1 (4.2 performance was unbearable) with EGit
> added. So, I will look forward to that feature when I finally move to
> e4. :-) Thanks,
This support is in 3.8.x if you have the latest EGit installed including
the 'EGit Plug-in Import Support'. You can also install the latest EGit
from this update site:
http://download.eclipse.org/egit/updates-nightly

Dani
> Dani.
Previous Topic:Eclipse cannot find already included libraries ?
Next Topic:External builder is runnable jar
Goto Forum:
  


Current Time: Thu Apr 25 00:24:06 GMT 2024

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

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

Back to the top