Skip to main content

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


This mailing list is for discussion of the implementation of the Eclipse UI itself. Please ask these questions on the eclipse.platform newsgroup.

platform-ui-dev-admin@xxxxxxxxxxx wrote on 05/18/2004 08:21:05 PM:

> 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.

Back to the top