I've got a menu contribution, realised through org.eclipse.ui.menus
extension point. I'd like to offer this menu contribution only for specific file extensions (e.g. *.pld), but I couldn't figure out how to do this with "visibleWhen". Any ideas?
---------------Update---------------- My extension point so far:
<extension
point="org.eclipse.ui.menus">
<menuContribution
allPopups="false"
locationURI="popup:org.eclipse.ui.navigator.ProjectExplorer#PopupMenu?before=additions">
<command
commandId="org.variability.configurator.commands.createPlc"
icon="icons/PlcWizard.png"
label="Create Product"
style="push">
<visibleWhen
checkEnabled="false">
</visibleWhen>
</command>
</menuContribution>
</extension>
Cheers, Phil