How to enable popup menu based on the extensions mentioned in a properties file. I want enable a context menu on all file extensions using *.* and exclude some extensions.
Paul Webster Messages: 6813 Registered: July 2009 Location: Ottawa
Senior Member
Both org.eclipse.ui.popupMenus (filters) and org.eclipse.ui.menus (core
expressions, property testers) support checking file extensions. But
they are static in their definition (defined at build time in the
plugin.xml).
With anything that uses core expressions, you can write your own
property tester than can compare the file extension against your more
dynamic list.
check out the wiki links in my sig for examples of menu contributions
and core expressions.