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(
        at org.eclipse.jgit.nls.GlobalBundleCache.lookupBundle(
        at org.eclipse.jgit.nls.NLS.get(
        at org.eclipse.jgit.nls.NLS.getBundleFor(
        at org.eclipse.jgit.awtui.UIText.get(
        at org.eclipse.jgit.awtui.CommitGraphPane.configureHeader(
        at org.eclipse.jgit.awtui.CommitGraphPane.<init>(
        at Glog.<init>(
        at NewMain_Repo.main(
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(
        at java.util.ResourceBundle.getBundleImpl(
        at java.util.ResourceBundle.getBundle(
        at org.eclipse.jgit.nls.TranslationBundle.load(
        ... 8 more
Caused by: java.lang.ClassCastException: org.eclipse.jgit.awtui.UIText cannot be cast to ResourceBundle
        at java.util.ResourceBundle$Control.newBundle(
        at java.util.ResourceBundle.loadBundle(
        at java.util.ResourceBundle.findBundle(
        at java.util.ResourceBundle.findBundle(
        at java.util.ResourceBundle.findBundle(
        at java.util.ResourceBundle.getBundleImpl(
        ... 10 more


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

Current Time: Wed Apr 08 19:33:23 GMT 2020

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

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

Back to the top