[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: How to add a popup menu in the current java editor ?

Thanks for your reply.
Another question is how do I find out all the available groups that I can
specify in the menubarPath.

- mei

David Springgay wrote:

> Mei-chuan,
>
> The java editors are defined in the org.eclipse.jdt.ui plugin.  Here is a
> snapshot of their declaration in plugin.xml.  You should be able to use
> the editor id's given below as the target id for your popup menu
> contribution.
>
> <extension
>     point= "org.eclipse.ui.editors"
>     id= "org.eclipse.jdt.ui.javaeditor">
>
>    <editor
>       id="org.eclipse.jdt.ui.CompilationUnitEditor"
>       icon="icons/full/obj16/jcu_obj.gif"
>       name="%JavaEditor.label"
>       extensions="java"
>       class="org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor"
>       contributorClass="..">
>    </editor>
>
>    <editor
>       id ="org.eclipse.jdt.ui.ClassFileEditor"
>       icon="icons/full/obj16/classf_obj.gif"
>       name="Class File Viewer"
>       extensions="class"
>       class="org.eclipse.jdt.internal.ui.javaeditor.ClassFileEditor"
>
> < etc >
>
> Dave