Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-ui-dev] How to install plugin to "Open With" context menu?

Hi there,

I have a question - I'm working on Hex Editor plugin for Eclipse
(http://ehep.sourceforge.net). People keep asking me to install this plugin
into "Open With" context menu in the Navigator and Package Explorer. Is it
possible?

I've already managed to install this plugin into the root level of context
menu using this <objectContribution> in my plugin.xml file:

	<extension point="org.eclipse.ui.popupMenus">
		<objectContribution
			id="net.sourceforge.ehep.editors.HexEditor"
			objectClass="org.eclipse.core.resources.IFile">
			<action
				id="net.sourceforge.ehep.editors.HexEditor.open"
				label="Hex Editor"
				icon="icons/ehep.gif"
				menubarPath="ehep"
				style="push"

helpContextId="net.sourceforge.ehep.editors.HexEditor.open_editor_action_con
text"
				class="net.sourceforge.ehep.actions.PopupMenuActionDelegate"
				enablesFor="1">
			</action>
		</objectContribution>
	</extension>

It works fine, but I would really like to have it under "Open With" submenu.
Please advise.

Thank you.

Randallco
http://ehep.sourceforge.net



Back to the top