How can I add a popup menu in eclipse for two different kinds of file types using name filter.
I want the popup menu to be visible only for “.wsdl” and “.xsd” file types. I tried using
namefilter = “*.wsdl | *.xsd”
but it didn’t work.
Can anyone please help me with this. Thanks in advance.
namefilter uses
org.eclipse.ui.SelectionEnabler.verifyNameMatch(String, String)to determine what’s allowed. It’s a simple wildcard tester. In org.eclipse.ui.popupMenus you could potentially use visibility or enablement to provide more complex name choices.You should also consider using commands, and visibility there is controlled using the more flexible core expressions.