Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » How to have the context menu in the History View ?
How to have the context menu in the History View ? [message #757138] Wed, 16 November 2011 17:24 Go to next message
Jerome Correnoz is currently offline Jerome CorrenozFriend
Messages: 80
Registered: July 2009
Member
Hi all,

I'm a newbbbie with eGIT. I've installed the eGit 1.1.0 from the update site here: http://download.eclipse.org/egit/updates. I've installed all plugins but the eGit Mylin (for dependencies with Mylin).

All works fine, except from the History view, I have no context menu when right click on this view. Is there something to configure ? Does someone already experienced it ?
FYI, the version of Eclipse is 3.6.2.

Thanks by advance for your help.
Jerome
Re: How to have the context menu in the History View ? [message #757144 is a reply to message #757138] Wed, 16 November 2011 17:53 Go to previous messageGo to next message
Kevin Sawicki is currently offline Kevin SawickiFriend
Messages: 47
Registered: September 2011
Member
You can display history by selecting a repository from the Git Repositories view and selecting the Show In > History menu item. This will display the history for the entire repository.

Or you can select a project or file that is associated with a Git repository and select the Team > Show In History menu item. This will display only the history for the selected file or folder.
Re: How to have the context menu in the History View ? [message #757214 is a reply to message #757144] Thu, 17 November 2011 07:28 Go to previous messageGo to next message
Jerome Correnoz is currently offline Jerome CorrenozFriend
Messages: 80
Registered: July 2009
Member
Thanks for your answer.

I was probably not clear , my problem concerns the context menu available in the History View. I can display the History View with the Commit graph. But when right clicking in this view, no context menu is available. Reading the eGit user's guide, I'm supposed to have context menu with actions such as: checkout, create branch, create patch, etc.

Any idea about this context menu ?
Re: How to have the context menu in the History View ? [message #757216 is a reply to message #757214] Thu, 17 November 2011 07:44 Go to previous messageGo to next message
Jerome Correnoz is currently offline Jerome CorrenozFriend
Messages: 80
Registered: July 2009
Member
Investigating a little, I have this exception in the error log when right clicking in the History View:
!ENTRY org.eclipse.ui 4 0 2011-11-17 08:43:05.625
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.ClassCastException: org.eclipse.jface.action.SubMenuManager cannot be cast to org.eclipse.jface.action.ContributionManager
at org.eclipse.ui.internal.PopupMenuExtender.addCommandWindowAction(Unknown Source)
at org.eclipse.ui.internal.PopupMenuExtender.menuAboutToShow(Unknown Source)
at org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuManager.java:338)
at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:469)
at org.eclipse.jface.action.MenuManager.access$1(MenuManager.java:465)
at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:491)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:241)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1058)
at org.eclipse.swt.widgets.Control.WM_INITMENUPOPUP(Control.java:4487)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4190)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1598)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2038)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4873)
at org.eclipse.swt.internal.win32.OS.TrackPopupMenu(Native Method)
at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:256)
at org.eclipse.swt.widgets.Display.runPopups(Display.java:4107)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3651)
at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source)
at org.eclipse.ui.internal.Workbench.runUI(Unknown Source)
at org.eclipse.ui.internal.Workbench.access$4(Unknown Source)
at org.eclipse.ui.internal.Workbench$5.run(Unknown Source)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unknown Source)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source)

I'm using Eclipse 3.6.2, is it a know issue ?
Re: How to have the context menu in the History View ? [message #757243 is a reply to message #757216] Thu, 17 November 2011 10:26 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
I just tried this and can't reproduce your problem:
- download fresh Eclipse 3.6.2 classic package (tried on Mac OS X 10.6.8 64bit cocoa)
- install EGit 1.1 from http://download.eclipse.org/egit/updates
- clone sample repo from http://egit.eclipse.org/egit-training.git
- import contained projects
- click "Show In > History" -> this opens the history view showing the commits
- right click any commit in the history view and the context menu comes up

Maybe your Eclipse installation is broken, try to install another fresh one and see if you still hit the problem.
Previous Topic:Commits listed in synchronization view should be openable
Next Topic:Using a topic branch with EGit
Goto Forum:
  


Current Time: Wed Apr 24 16:18:08 GMT 2024

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

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

Back to the top