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

Bug 400496

Summary: Invalid Menu Extension in show in menu
Product: [Eclipse Project] Platform Reporter: Jason Duan <jasonxd>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: pwebster
Version: 3.6.2Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug

Description Jason Duan CLA 2013-02-11 16:18:34 EST
This problem happens to eclipse 3.6.2 and up.  

I want to add a menu item to the Show in menu when I right click my object in a view.  It should be activated only when one object is selected in my view. My extension is as follows:

  <extension point="org.eclipse.ui.popupMenus">
    <objectContribution
      id="my.popupMenu"
      objectClass="my.object.class">
      <action
        id="my.ui.popupMenu.id"
        enablesFor="1"
        label="%viewRuntimes"
        icon="icons/obj16/my.gif"
        menubarPath="org.eclipse.ui.navigate.showInQuickMenu/additions"
        class="my.MyAction"/>
    </objectContribution>
  </extension>

When I select 2 objects in my view I got the below error in the .log
!MESSAGE Plug-in 'my.ui' contributed an invalid Menu Extension (Path: 'org.eclipse.ui.navigate.showInQuickMenu' is invalid): my.ui.popupMenu.id

I know that the show in menu item is not available when multiple items are selected.  I guess the menu bar Path, org.eclipse.ui.navigate.showInQuickMenu/additions is invalid in this case.  However, should the code tests if meet the enableFor="1" because checking the menu bar path and throw me this error?
Comment 1 Jason Duan CLA 2013-02-11 16:19:46 EST
my ref: 100272
Comment 2 Eclipse Genie CLA 2019-11-20 16:52:26 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.