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

Bug 436720

Summary: Duplicate menu
Product: [Eclipse Project] Platform Reporter: Kenneth Cheung <kennethc>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 4.4   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Example plugin
none
screen cap with duplicate menu none

Description Kenneth Cheung CLA 2014-06-05 10:48:07 EDT
Created attachment 244000 [details]
Example plugin

- Define a menu contribution like:
<plugin>
   <extension
         point="org.eclipse.ui.menus">
    <menuContribution locationURI="popup:org.eclipse.ui.popup.any">
   			<command  commandId="my.command"
   						label="My Menu"
   						style="push">
   						
   				<visibleWhen checkEnabled="false">
   					<iterate ifEmpty="false">
   						<instanceof value="org.eclipse.core.resources.IFolder"/>
   					</iterate>
   				</visibleWhen>
   			
   			</command>
   	</menuContribution>
   </extension>

</plugin>

- Create a Project and add a folder
- Right click on folder
- You'll see 2 "My Menu"
Comment 1 Paul Webster CLA 2014-06-05 10:49:24 EDT
What exact version of 4.4 are you using?

PW
Comment 2 Kenneth Cheung CLA 2014-06-05 10:50:00 EDT
Created attachment 244001 [details]
screen cap with duplicate menu
Comment 3 Paul Webster CLA 2014-06-05 10:50:40 EDT
Bug 435949 was fixed in RC3
PW
Comment 4 Kenneth Cheung CLA 2014-06-05 10:55:06 EDT
20140529-1622

Thanks!
Comment 5 Paul Webster CLA 2014-06-05 11:08:28 EDT

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