Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Command contributions
Command contributions [message #673320] Mon, 23 May 2011 08:37 Go to next message
David  Pérez is currently offline David PérezFriend
Messages: 228
Registered: July 2009
Senior Member
Hi,

I have a menu contribution defined in a plugin:

<menuContribution
locationURI="popup:com.jobisjob.grid.view.GridView?after=additions">
<separator name="GridView.first"/>
<menu
icon="icons/grid/debug.gif"
id="com.jobisjob.grid.debug"
label="Depuración">
<command
commandId="com.jobisjob.view.sql"
style="push">
</command>
<separator name="debug.last"/>
</menu>
</menuContribution>

and in another plugin I would like to place an additional command inside de "Debug menu".

This doesn't work:

<menuContribution
allPopups="false"
locationURI="popup:com.jobisjob.grid.view.GridView?after=debug.last">
<command
commandId="com.jobisjob.show.all.problems"
style="push">
</command>
</menuContribution>

whereas this does (although in a different position where I desire):

<menuContribution
allPopups="false"
locationURI="popup:com.jobisjob.grid.view.GridView?after=com.jobisjob.grid.debug">
<command
commandId="com.jobisjob.show.all.problems"
style="push">
</command>
</menuContribution>

Why doesn't the first one work?
Thanks in advance for any hint.

David
Re: Command contributions [message #673703 is a reply to message #673320] Tue, 24 May 2011 14:02 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You have to specify the menu ID you want to contribute to. Wouldn't it be popup:com.jobisjob.grid.debug?after=debug.last

PW


Previous Topic:Chinese character display help
Next Topic:Binding conflicts
Goto Forum:
  


Current Time: Tue Mar 19 09:57:09 GMT 2024

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

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

Back to the top