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 23:43 Go to next message
Leo Bayer is currently offline Leo BayerFriend
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 21:24 Go to previous message
Eclipse UserFriend
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: Sat Dec 20 06:05:16 GMT 2014

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

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