Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » How to always enable command handler in Egit(How to always enable command handler in Egit)
How to always enable command handler in Egit [message #1442291] Fri, 10 October 2014 22:43
Ruhong Cai is currently offline Ruhong CaiFriend
Messages: 4
Registered: October 2014
Junior Member
In Egit, ..... when right click the project, then click "Show in History", the history View shows the list of all commits, select one commit, right click , the pop up menu shows (Checkout, Create Branch, Create Tag, .....Revision Comment). What I need to do is to add a new item in this pop up menu called "Add To Factory", then when click it , go to "AddToFactoryHandler" to do the implementation.

I want this menu item always there when right click the commit in history View.

<extension point="org.eclipse.ui.menus">
<menuContribution locationURI="popup:org.eclipse.egit.ui.historyPageContributions">
<command defaultHandler="xxxxxxxxxxx.AddToFactoryHandler"
commandId="xxxxxxxxxx.AddToFactory"
label="Add To Factory"
style="push" >
</command>
</menuContribution>
</extension>
<extension point="org.eclipse.ui.handlers">
<handler class="xxxxxxxxxxx.AddToFactoryHandler"
commandId="xxxxxxxxxx.AddToFactory">
</handler>
</extension>
Then in history view, the first time I select any commit, right click , the popup menu shows grayed out "Add To Factory". then the second time, right click , it goes away.

I do appreciate any help .. Thanks!

[Updated on: Fri, 10 October 2014 22:45]

Report message to a moderator

Previous Topic:How to integrate with Egit for adding a new item in Commit menu from history view
Next Topic:Could not add menu item to Egit history View menu
Goto Forum:
  


Current Time: Fri Dec 13 00:47:22 GMT 2019

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

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

Back to the top