|Re: How are menu contributions sorted [message #300345 is a reply to message #300093]
||Tue, 07 March 2006 21:24
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
Powered by FUDForum
. Page generated in 0.03964 seconds