Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 230220 - org.eclipse.wst.sse.ui adds invalid popup menu to all java elements
Summary: org.eclipse.wst.sse.ui adds invalid popup menu to all java elements
Status: RESOLVED DUPLICATE of bug 226197
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.sse (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M7   Edit
Assignee: Nick Sandonato CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-05 11:07 EDT by Raheel Ashraf CLA
Modified: 2008-05-05 14:15 EDT (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 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 ***