Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Integrate GIT Plugin in a RCP Application
Integrate GIT Plugin in a RCP Application [message #755418] Tue, 08 November 2011 12:30 Go to next message
Marcel Austenfeld is currently offline Marcel AustenfeldFriend
Messages: 160
Registered: July 2009
Senior Member
Hello,

i would like to integrate the EGIT plugin in an RCP application. Which plugins have to be integrated into an RCP application for a decent installation?

In addition i have integrated the p2 Update Manager in my RCP application. Which Update sites do i need to install the latest plugin from EGIT in an existing RCP application?

Note: I was able to install earlier versions of the plugin without any problem. But now i get some strange errors after ca. 30% of the installation(Eclipse 3.6.1):

"An error occurred while collecting items to be installed
session context was:(profile=profile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Comparison method violates its general contract!
Comparison method violates its general contract!"


Any help is appreciated!
Re: Integrate GIT Plugin in a RCP Application [message #755468 is a reply to message #755418] Tue, 08 November 2011 15:31 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
You need at least the following features:
- org.eclipse.egit
- org.eclipse.jgit
to enable debugging in case of problems you may want to add the source features
- org.eclipse.egit.source
- org.eclipse.jgit.source
to enable Mylyn integration for task based workflow add feature
- org.eclipse.egit.mylyn
to add support for team projects sets add feature
- org.eclipse.egit.psf

Find the URLs for p2 repositories of EGit releases here [1]. If you want the nightly
build use [2]. I have no clue what's causing the error you see.

[1] http://wiki.eclipse.org/EGit/FAQ#Where_can_I_find_older_releases_of_EGit.3F
[2] http://download.eclipse.org/egit/updates-nightly
Re: Integrate GIT Plugin in a RCP Application [message #755529 is a reply to message #755468] Tue, 08 November 2011 17:37 Go to previous messageGo to next message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
If you're RCP application doesn't use things from the IDE plug-in (e.g., a workspace) you may be better at just using org.eclipse.jgit and/or org.eclipse.egit.core... depending what dependencies you want to bring in.
Re: Integrate GIT Plugin in a RCP Application [message #755691 is a reply to message #755529] Wed, 09 November 2011 10:33 Go to previous messageGo to next message
Marcel Austenfeld is currently offline Marcel AustenfeldFriend
Messages: 160
Registered: July 2009
Senior Member
Matthias, Chris, thanks for the fast answers.

I don't know why i get these error messages with an existing installation of my application. However, with a fresh install everything seems to work fine.
Maybee some plugin interaction causes the errors like this:

An error occurred while collecting items to be installed
session context was:(profile=profile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Comparison method violates its general contract!
Comparison method violates its general contract!


Regards,

Marcel
Re: Integrate GIT Plugin in a RCP Application [message #779869 is a reply to message #755691] Mon, 16 January 2012 17:58 Go to previous messageGo to next message
Howard Van Dam is currently offline Howard Van DamFriend
Messages: 1
Registered: January 2012
Junior Member
I am trying to do the same thing. Where do I find how to add access the ui from my application? Do I need to add an extension point to my code to show the eGIT ui?
Re: Integrate GIT Plugin in a RCP Application [message #783239 is a reply to message #779869] Wed, 25 January 2012 10:35 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
The EGit UI is integrated with the Eclipse team framework, so you probably need quite some Eclipse platform features installed into your RCP app to make this work.
Previous Topic:EGit and RemoteTools (PTP)
Next Topic:what is the difference between Jgit and Egit
Goto Forum:
  


Current Time: Fri Apr 19 08:23:17 GMT 2024

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

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

Back to the top