Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » JGit: Glog without command line dependency(org.eclipse.jgit.pgm.Glog)
JGit: Glog without command line dependency [message #644428] Sat, 11 December 2010 07:15
Michael Lantz is currently offline Michael LantzFriend
Messages: 2
Registered: September 2010
Location: Canada
Junior Member
I would like to implement a customized version of Glog where I pass in a Repository object as a parameter and display all commits (similar to git log). I'm just wondering if anyone has done this or can take a look at my code to see where my logic is flawed.

For testing purpose I have set the gitdir and db variables to static values which have worked when using the api (CommitCommand, AddCommand, etc).

If anyone can point me in the right direction or has a similar version of a Glog interface using jgit it would be appreciated. I would like to use this UI in a existing java application.

When I try making a direct call to the Glog constructor with my changes I get the following error:


org.eclipse.jgit.errors.TranslationBundleLoadingException: Loading of translation bundle failed for [org.eclipse.jgit.awtui.UIText, en_CA]
        at org.eclipse.jgit.nls.TranslationBundle.load(TranslationBundle.java:164)
        at org.eclipse.jgit.nls.GlobalBundleCache.lookupBundle(GlobalBundleCache.java:95)
        at org.eclipse.jgit.nls.NLS.get(NLS.java:132)
        at org.eclipse.jgit.nls.NLS.getBundleFor(NLS.java:118)
        at org.eclipse.jgit.awtui.UIText.get(UIText.java:58)
        at org.eclipse.jgit.awtui.CommitGraphPane.configureHeader(CommitGraphPane.java:133)
        at org.eclipse.jgit.awtui.CommitGraphPane.<init>(CommitGraphPane.java:87)
        at Glog.<init>(Glog.java:83)
        at NewMain_Repo.main(NewMain_Repo.java:30)
Caused by: java.util.MissingResourceException: Can't find bundle for base name org.eclipse.jgit.awtui.UIText, locale en_CA
        at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1521)
        at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1260)
        at java.util.ResourceBundle.getBundle(ResourceBundle.java:787)
        at org.eclipse.jgit.nls.TranslationBundle.load(TranslationBundle.java:162)
        ... 8 more
Caused by: java.lang.ClassCastException: org.eclipse.jgit.awtui.UIText cannot be cast to ResourceBundle
        at java.util.ResourceBundle$Control.newBundle(ResourceBundle.java:2391)
        at java.util.ResourceBundle.loadBundle(ResourceBundle.java:1406)
        at java.util.ResourceBundle.findBundle(ResourceBundle.java:1365)
        at java.util.ResourceBundle.findBundle(ResourceBundle.java:1292)
        at java.util.ResourceBundle.findBundle(ResourceBundle.java:1292)
        at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1234)
        ... 10 more



Thanks,

Michael Lantz
Previous Topic:Egit with Android source code
Next Topic:helios 64 bit C/C++ - git not working
Goto Forum:
  


Current Time: Sat Apr 20 00:26:14 GMT 2024

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

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

Back to the top