Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 2573

Summary: [Contributions] ordering: Ordering of viewerContributions (1GGAOZF)
Product: [Eclipse Project] Platform Reporter: Jared Burns <jared_burns>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED WONTFIX QA Contact:
Severity: enhancement    
Priority: P5 CC: mistria, simon_arsenault
Version: 2.0Keywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Jared Burns CLA 2001-10-10 22:39:02 EDT
We (MIN) are adding viewerContributions for our popup menus in xml as follows, but the items are 
being displayed in reverse order in the UI. Reccomend that these items should either appear 
in their intuitive implicit order (the order they are specified in the xml file) or an explicit ordering 
mechanism (numbering) should be added.

<extension
	point="org.eclipse.ui.popupMenus">
.
.
.
	<viewerContribution
		id="org.eclipse.jdt.debug.BreakpointHitCountActions"
		targetID="org.eclipse.debug.ui.BreakpointView">
		<action
			id="org.eclipse.jdt.ui.actions.BreakpointHitCount"
			label="&amp;Hit Count"
			tooltip="Set breakpoint hit count"
			menubarPath="emptyBreakpointGroup"
			class="org.eclipse.jdt.internal.debug.ui.BreakpointHitCountAction"
			enablesFor="1">
		</action>
	</viewerContribution>	
	<viewerContribution
		id="org.eclipse.jdt.debug.ExceptionCaughtToggleActions"
		targetID="org.eclipse.debug.ui.BreakpointView">
		<action
			id="org.eclipse.jdt.ui.actions.CaughtToggle"
			label="&amp;Caught"
			tooltip="Suspend when caught"
			menubarPath="emptyBreakpointGroup"
			state="true"
			class="org.eclipse.jdt.internal.debug.ui.ExceptionCaughtToggleAction"
			enablesFor="+">
		</action>
	</viewerContribution>
	<viewerContribution
		id="org.eclipse.jdt.debug.ExceptionUncaughtToggleActions"
		targetID="org.eclipse.debug.ui.BreakpointView">
		<action
			id="org.eclipse.jdt.ui.actions.UncaughtToggle"
			label="&amp;Uncaught"
			tooltip="Suspend when uncaught"
			menubarPath="emptyBreakpointGroup"
			state="true"
			class="org.eclipse.jdt.internal.debug.ui.ExceptionUncaughtToggleAction"
			enablesFor="+">
		</action>
	</viewerContribution>
.
.
.
</extension>

NOTES:
Comment 1 DJ Houghton CLA 2001-10-29 19:01:32 EST
PRODUCT VERSION:
0.9

Comment 2 Simon Arsenault CLA 2002-09-03 16:33:35 EDT
This is a well know problem since 1.0 (actions show up in the ui in the reverse 
order that they are listed in the XML file). We can't change this as it would 
break every plugin out there.

Adding a new attribute is something we've thought about...just not high 
priority given the rest of the workload.
Comment 3 Simon Arsenault CLA 2002-09-03 16:43:19 EDT
*** Bug 5049 has been marked as a duplicate of this bug. ***
Comment 4 Michael Van Meekeren CLA 2006-04-21 13:56:34 EDT
Moving Dougs bugs
Comment 5 Paul Webster CLA 2007-04-05 19:00:50 EDT
Assigning to component owner
PW
Comment 6 Mickael Istria CLA 2016-11-10 10:39:44 EST
As the org.eclipse.ui.popupMenus extension point is depracated (replaced by org.eclipse.ui.commands and org.eclipse.ui.menus, supporting ordering), adding the specific feature is not going to be considered.