This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 134659 - [ActionSets] Menubar entry appears twice in the [Customize Perspective] dialog.
Summary: [ActionSets] Menubar entry appears twice in the [Customize Perspective] dialog.
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 4.4   Edit
Assignee: Platform UI Triaged CLA
QA Contact: Daniel Rolka CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 420956
  Show dependency tree
 
Reported: 2006-04-04 00:44 EDT by Tomoki Shiratori CLA
Modified: 2014-03-13 05:44 EDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomoki Shiratori CLA 2006-04-04 00:44:55 EDT
1) Start Eclipse 3.1.1.
2) Create a plug-in project. Select the 'Hello, World' template.
3) Edit the plugin.xml as follows:
I modified the <menu> tag and 'menubarPath' to put the command in the menupath of 'project/additions'. I also removed 'toolbarPath'.

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>

   <extension
         point="org.eclipse.ui.actionSets">
      <actionSet
            label="Sample Action Set"
            visible="true"
            id="plg01.actionSet">
         <menu
               label="&amp;Project"
               id="project"
               path="additions">
            <separator
                  name="sampleGroup">
            </separator>
         </menu>
         <action
               label="&amp;Sample Action"
               icon="icons/sample.gif"
               class="plg01.actions.SampleAction"
               tooltip="Hello, Eclipse world"
               menubarPath="project/sampleGroup"
               id="plg01.actions.SampleAction">
         </action>
      </actionSet>
   </extension>

</plugin>

4) Run the plugin using Eclipse Application.
5) Select [Windows] > [Customize Perspective] in the runtime workbench.
6) Select [Commands] tab in the [Customize Perspective] dialog. You will see the [Project] > [Sample Action] entry appears twice in the [Menubar details]. 

Is there any workaround?
Comment 1 Paul Webster CLA 2006-04-25 14:11:19 EDT
*** Bug 135451 has been marked as a duplicate of this bug. ***
Comment 2 Paul Webster CLA 2006-04-25 14:12:34 EDT
I might have been a little hasty, so this use case must be included as well:

Hi,
when i select multiple UI elements and right click, the context menu has
multiple entries of the same menu.

problem description with an example!
-i have an object contribution on objects A and B.
-both these derieve from the super class Z. the comman menus required are put
under the object contribution Z.
- now when i select 2 objects of the same type , things work fine.
- but when i select 2 objects, one of type A and the other of type B, then the
menus under the object contribution Z apper multiple times. 

PW
Comment 3 Mike Wilson CLA 2008-04-12 14:41:23 EDT
This is marked P2. Do we plan to fix this for R3.4?

Comment 4 Eric Moffatt CLA 2008-04-14 15:35:38 EDT
Paul, is this still an issue?
Comment 5 Paul Webster CLA 2008-04-15 09:00:52 EDT
This is not P2, it appears to be the customize action bars in the CustomizePerpsective dialog reading the action set as separate from the main Project menu.

PW
Comment 6 Eric Moffatt CLA 2008-04-15 11:10:25 EDT
OK, I'll look at this during the leak testing since that scenario requires that I have 5 classes (I can just make two of them subclasses of another...;-).
Comment 7 Martin Oberhuber CLA 2013-09-27 00:45:56 EDT
CQ:WIND00414961

What is the status of this in the context of Eclipse 4 ?
Comment 8 Daniel Rolka CLA 2013-11-25 11:24:24 EST
Is it still valid? I can not reproduce it in the Eclipse 4.4 (build N20131123-1500)

Daniel
Comment 9 Lars Vogel CLA 2014-03-13 05:44:55 EDT
(In reply to Daniel Rolka from comment #8)
> Is it still valid? I can not reproduce it in the Eclipse 4.4 (build
> N20131123-1500)
> 
> Daniel

I'm also unable to reproduce it anymore. I mark it as fixed with Luna