Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 230227 - org.eclipse.wst.xml.ui adds invalid popup menu to all java elements
Summary: org.eclipse.wst.xml.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.xml (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:35 EDT by Raheel Ashraf CLA
Modified: 2008-05-05 14:16 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:35:41 EDT
Build ID: I20080330-1350

Steps To Reproduce:
org.eclipse.wst.xml.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="generateMenuId"
              label="%genMenuLabel">
	        <command
	              commandId="org.eclipse.wst.sse.ui.generate.xml"
	              id="GenerateXML"
	              style="push">
	           <visibleWhen checkEnabled="false">
	              <or>
					<iterate>
						<adapt
							type="org.eclipse.core.resources.IFile">
							<test
								property="org.eclipse.core.resources.contentTypeId"
                    			value="org.eclipse.wst.xsd.core.xsdsource">
							</test>
						</adapt>
					</iterate>
					<iterate>
						<adapt
							type="org.eclipse.core.resources.IFile">
							<test
								property="org.eclipse.core.resources.contentTypeId"
                    			value="org.eclipse.wst.dtd.core.dtdsource">
							</test>
						</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:16:34 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:16:50 EDT

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