Bug 400496 - Invalid Menu Extension in show in menu
Summary: Invalid Menu Extension in show in menu
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2013-02-11 16:18 EST by Jason Duan CLA
Modified: 2019-11-20 16:52 EST (History)
1 user (show)

See Also:


Attachments

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