How do I find the appropriate Eclipse Git repository? [message #987685] |
Tue, 27 November 2012 15:25 |
Brian Vosburgh 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 |
Dani Megert 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
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08360 seconds