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

Bug 380458

Summary: Juno RC1 CPP EPP package has multiple Run top-level menus
Product: [Eclipse Project] Platform Reporter: Jeff Johnston <jjohnstn>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: cdtdoug, marc.khouzam, pawel.1.piech, pwebster
Version: 4.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Jeff Johnston CLA 2012-05-23 14:17:04 EDT
The latest RC1 EPP for C/C++ has two Run menu entries at the top.  The first entry has one sub-entry: Breakpoint Types-> C/C++ Breakpoints

Clearly, something has gone wrong and the menu entry was meant to be added to an existing menu.  The 2nd Run menu seems to have a number of entries and appears to be the correct one.
Comment 1 Paul Webster CLA 2012-05-23 14:36:31 EDT
Do the 2 run menus persist after a restart?

PW
Comment 2 Pawel Piech CLA 2012-05-23 14:40:40 EDT
I just noticed this problem as well.  It only shows up for me when launching with a new workspace and the problem does not appear with 3.8 builds.

Debug contributes to the top menu using action sets and the org.eclipse.ui.menus commands.  In order to place the commands in between the action sets actions, I added the following menu contribution:

       <menuContribution
            locationURI="menu:org.eclipse.ui.main.menu?after=additions">
         <!-- Need to re-create the menu structure in the command framework
              so that contributed commands will be placed correctly in menus -->
         <menu 
              id="org.eclipse.ui.run" 
         	  label="%RunMenu.label">
            <separator name="stepGroup" visible="true"/>
            <separator name="stepIntoGroup"/>
            <separator name="stepOverGroup"/>
            <separator name="stepReturnGroup"/>
            <separator name="emptyStepGroup"/>
            <separator name="relaunchGroup" visible="true"/>
            <separator name="profileGroup" visible="true"/>
            <separator name="runGroup" visible="true"/>
            <separator name="debugGroup" visible="true"/>
            <separator name="emptyLaunchGroup" visible="true"/>
            <separator name="breakpointGroup" visible="true"/>
            <separator name="lineBreakpointGroup"/>
            <separator name="emptyBreakpointGroup"/>
         </menu>      
       </menuContribution>

Without it, the second Run menu goes away but then the commands are inserted in random places. 
 
(In reply to comment #1)
> Do the 2 run menus persist after a restart?
No.  I only see it when launching with a clean workspace.
Comment 3 Paul Webster CLA 2012-05-23 14:42:21 EDT
Then it's Bug 376896, which effects actionSet ordering in certain cases in newly created windows.

PW

*** This bug has been marked as a duplicate of bug 376896 ***