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

Bug 230220

Summary: org.eclipse.wst.sse.ui adds invalid popup menu to all java elements
Product: [WebTools] WTP Source Editing Reporter: Raheel Ashraf <rashraf>
Component: wst.sseAssignee: Nick Sandonato <nsand.dev>
Status: RESOLVED DUPLICATE QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: for.work.things
Version: unspecified   
Target Milestone: 3.0 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Raheel Ashraf CLA 2008-05-05 11:07:34 EDT
Build ID: I20080330-1350

Steps To Reproduce:
org.eclipse.wst.sse.ui uses the org.eclipse.ui.menus extension point. However one of the declaration looks like:

   <menuContribution
           locationURI="popup:org.eclipse.ui.popup.any?after=additions">
        <menu
              id="sourceMenuId"
              label="%Source">
	        <command
	              commandId="org.eclipse.wst.sse.ui.format"
	              id="sourceFormat"
	              style="push">
	           <visibleWhen checkEnabled="false">
	              <or>
					<iterate>
						<adapt
							type="org.eclipse.core.resources.IContainer">
						</adapt>
					</iterate>
					<iterate>
						<adapt
							type="org.eclipse.core.resources.IFile">
						</adapt>
					</iterate>
				 </or>	
	           </visibleWhen>
	        </command>
        </menu>
     </menuContribution>
	
this is invalid since this is added to all views where the underlying object is IContainer or IFile. I have a view where it displays the reports and this entry is showing up in my context menu

More information:
Comment 1 Amy Wu CLA 2008-05-05 14:15:03 EDT
This should already be fixed in a recent WTP 3.0 M7 build.
See:
bug 226197
bug 228065
Comment 2 Amy Wu CLA 2008-05-05 14:15:21 EDT

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