rendered paste body <extension point="org.eclipse.ui.popupMenus">
<objectContribution
objectClass="org.eclipse.core.runtime.IAdaptable"
id="org.sf.easyexplore.contribution">
<enablement>
<objectClass name="org.eclipse.core.resources.IFile" />
Here is what PDE gives me
<extension
point="org.eclipse.ui.popupMenus">
<objectContribution
adaptable="false"
id="Scratch.objectContribution1"
objectClass="scratch.object1">
<enablement>
<objectClass name="org.eclipse.core.resources.IFile"/>
</enablement>
</objectContribution>
</extension>
Here is the full markup, as I initially apsted only a snippet:
<extension point="org.eclipse.ui.popupMenus">
<objectContribution
objectClass="org.eclipse.core.runtime.IAdaptable"
id="org.sf.easyexplore.contribution">
<enablement>
<objectClass name="org.eclipse.core.resources.IFile" />
</enablement>
<menu id="org.sf.easyexplore.Menu" path="additions"
label="%ActionSet.name">
<separator name="group1" />
</menu>
<action class="org.sf.easyexplore.actions.EasyExploreAction"
definitionId="org.sf.easyexplore.actions.EasyExploreActionCommand"
enablesFor="1" icon="icon/easyexplore.gif"
id="org.sf.easyexplore.actions.EasyExploreAction"
label="%ExploreAction.name"
menubarPath="org.sf.easyexplore.Menu/group1">
</action>
<action class="org.sf.easyexplore.actions.EasyCommandAction"
definitionId="org.sf.easyexplore.actions.EasyCommandActionCommand"
enablesFor="1" icon="icon/easycommand.gif"
id="org.sf.easyexplore.actions.EasyCommandAction"
label="%CommandAction.name"
menubarPath="org.sf.easyexplore.Menu/group1">
</action>
<action
class="org.sf.easyexplore.actions.EasyUserDefinedAction"
definitionId="org.sf.easyexplore.actions.EasyUserDefinedActionCommand"
enablesFor="1" id="org.sf.easyexplore.actions.EasyUserDefinedAction"
label="%UserDefined.name"
menubarPath="org.sf.easyexplore.Menu/group1">
</action>
<filter name="org.sf.easyexplore.filter1"
value="org.sf.easyexplore.filter1" />
</objectContribution>
</extension>