Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How are menu contributions sorted
How are menu contributions sorted [message #300093] Wed, 01 March 2006 18:43 Go to next message
Leo Bayer is currently offline Leo Bayer
Messages: 10
Registered: July 2009
Junior Member
I've contributed a set of popupMenus objectContributions and I would
like to control the sort order. My contributions span multiple plugins.
What is the best way to go about ensuring some predictable sort order?

I would preferably like them sorted alphabetically.

Thanks
- Leo
Re: How are menu contributions sorted [message #300345 is a reply to message #300093] Tue, 07 March 2006 16:24 Go to previous message
Eclipse User
Originally posted by: douglas.pollock.magma.ca

Leo Bayer wrote:
> I've contributed a set of popupMenus objectContributions and I would
> like to control the sort order. My contributions span multiple plugins.
> What is the best way to go about ensuring some predictable sort order?
>
> I would preferably like them sorted alphabetically.

From the extension point documentation:
"If two or more actions are contributed to a menu by a single extension the
actions will appear in the reverse order of how they are listed in the
plugin.xml file. This behavior is admittedly unintuitive. However, it was
discovered after the Eclipse Platform API was frozen. Changing the behavior
now would break every plug-in which relies upon the existing behavior."

Otherwise, they are sorted based on the identifier of the plug-in and of the
object contribution.



cheers,
d.
Previous Topic:popup help
Next Topic:get Author or username
Goto Forum:
  


Current Time: Fri Apr 18 10:02:47 EDT 2014

Powered by FUDForum. Page generated in 0.01524 seconds