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

Bug 325543

Summary: 'endof' option in locationURI for menuContributions behaves incorrectly
Product: [Eclipse Project] Platform Reporter: Deepak Azad <deepakazad>
Component: UIAssignee: Dean Roberts <dean.t.roberts>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, dean.t.roberts, prakash, pwebster, remy.suen
Version: 4.1   
Target Milestone: 4.2 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
screenshot none

Description Deepak Azad CLA 2010-09-17 01:48:13 EDT
Created attachment 179081 [details]
screenshot

build id: I20100915-2008

I add a command to the navigate menu using the 'endof' option like this... (in o.e.jdt.debug.ui/plugin.xml)

<extension 
         point="org.eclipse.ui.menus">
       <menuContribution
            locationURI="menu:navigate?endof=open.ext">
        <command
              commandId="org.eclipse.jdt.debug.ui.command.OpenFromClipboard"

But the command shows up in an incorrect location (see attached screenshot). I expect it to be present at position '2' in the screenshot.

This works correctly in 3.7
Comment 1 Deepak Azad CLA 2010-09-17 03:45:51 EDT
org.eclipse.e4.ui.internal.workbench.ContributionsAnalyzer.getIndex(...) does not have support for 'endof'. A fix similar to the one for Bug 193600 should be applied.
Comment 2 Paul Webster CLA 2011-11-01 12:01:18 EDT
This needs to be implemented while processing the MMCs

PW