How do I find the appropriate Eclipse Git repository? [message #987685] |
Tue, 27 November 2012 10:25  |
Eclipse User |
|
|
|
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 11:40   |
Eclipse User |
|
|
|
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 #988306 is a reply to message #988211] |
Thu, 29 November 2012 05:37  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.08724 seconds