Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325543 - 'endof' option in locationURI for menuContributions behaves incorrectly
Summary: 'endof' option in locationURI for menuContributions behaves incorrectly
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 4.2 M6   Edit
Assignee: Dean Roberts CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-17 01:48 EDT by Deepak Azad CLA
Modified: 2012-02-22 10:33 EST (History)
5 users (show)

See Also:


Attachments
screenshot (12.95 KB, image/png)
2010-09-17 01:48 EDT, Deepak Azad CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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