Community
Participate
Working Groups
Created attachment 271301 [details] Patch for more adaptative handler for menu action "New XML File..." In some conditions, selecting the "Generate > New XML File..." context menu action on an XSD file doesn't have any effect. The "New XML File" doesn't show up. The handler for the "Generate > New XML File..." action in context menu is too strict on the expected type of the current selection. If the object of the current selection is not an instance of the IFile class, the action is silently cancelled. It simply checks if the current selection is an IFile, instead of checking if the current selection is adaptable to an IFile, like prescribed by the Eclipse plug-in development practice. This prevents the "New XML File.." wizard to open when the selection is actually a proxy to an IFile (like some kinds of product-specific explorers do). Attaching a patch which fixes the issue (based on current master of webtools.sourceediting commit a1aa106c284a915749f57).
Nicolas, please sign your ECA.
(In reply to Nitin Dahyabhai from comment #1) > Nicolas, please sign your ECA. It's done now.
Fixed with newer Adapters utility.