Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » CommitAction class - access restrictions
CommitAction class - access restrictions [message #496052] Sat, 07 November 2009 15:43 Go to next message
Stefan Reiterer is currently offline Stefan ReitererFriend
Messages: 10
Registered: October 2009
Junior Member
Hi!

In the course of my project I want to use EGIT. To commit a couple of files I want to make use of the CommitAction class. This class is located in the following package:

org.eclipse.egit.ui.internal.actions

My problem is, that the CommitAction class was not exported (in the Manifest file) and so it is not possible to instantiate it (access restrictions).
Other team providers such as subclipse, or subversive also provide a CommitAction class. They exported the class and so I can use it in my project.

Is it possible to export the action classes in further versions of egit, or is there a possibility to bypass the access restrictions?

Yours truly
Stefan Reiterer
Re: CommitAction class - access restrictions [message #497115 is a reply to message #496052] Thu, 12 November 2009 14:31 Go to previous message
Stefan Lay is currently offline Stefan LayFriend
Messages: 342
Registered: July 2009
Senior Member
Hi Stefan,

I think that the egit ui plugin should not be directly used by other plugins, they should just be the team provider UI in eclipse.

If you want to programmatically commit you should just use jgit. However, I agree that there is a lot of logic in the egit Commit action which you would have to re-implement. In my opinion this code should be located in jgit.

Or there should be a commit operation in the egit core plugin which can be used by other plugins.

I'm curious what other contributers think about that.

Regards,
Stefan
Previous Topic:EGit Documetation
Next Topic:CommitAction class - access restrictions
Goto Forum:
  


Current Time: Mon Aug 19 14:12:10 GMT 2019

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

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

Back to the top