[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: adding actions to the "Source" menu

Search the newsgroup for the last week or so... I've posted a couple of
times the reason for this type of problem. There is a limitation right now
that a plugin will not "inherit" the menu definition from prerequisite
plugins, therefore they must be redefined in the plugin.

Simon :-)

"Genady" <genadyb@xxxxxxxxxxxx> wrote in message
news:b7lptc$pa9$1@xxxxxxxxxxxxxxxx
> I still have problems.
> Here is what I do, and eclipse complains about "Invalid Menu Extension
> (Path is invalid)"
>
> Genady
>
>     <extension
>           point="org.eclipse.ui.actionSets">
>        <actionSet
>              label="My plugin Action Set"
>              visible="true"
>              id="net.sf.lunareclipse.myplugin.actionSet">
>        <menu
>              id="net.sf.lunareclipse.myplugin.menu"
>              label="My submenu"
>              path="org.eclipse.jdt.ui.source.menu/codeGroup">
>           <separator name="mygroup"/>
>          </menu>
>           <action
>                 label="&amp;My Action"
>                 icon="icons/sample.gif"
>                 tooltip="TEST"
>                 class="net.sf.lunareclipse.myplugin.actions.MyAction"
>                 menubarPath="net.sf.lunareclipse.myplugin.menu/mygroup"
>                 id="net.sf.lunareclipse.myplugin.actions.MyAction">
>           </action>
>        </actionSet>
>     </extension>
>
>
> Dirk Bäumer wrote:
> > Hi,
> >
> > the correct menubarPath for the codeGroup in the source menu is
> > "org.eclipse.jdt.ui.source.menu/codeGroup". All actions in the source
> > menu are contributed via XML. So JDT/UI's plugin.xml file is a good
> > example.
> >
> > Dirk
> >
> >
> > "Genady" <genadyb@xxxxxxxxxxxx> wrote in message
> > news:b795d2$h4m$1@xxxxxxxxxxxxxxxx
> >
> >>Hi,
> >>
> >>I want to create an action set that will be integrated into the JDT
> >>"Source" menu.
> >>Can anybody help me with the correct menu bar path ?
> >>
> >>I tried all kinds of paths, but nothing seems to work.
> >>My last attempt was
> >>
> >>
> >
> >
menubarPath="org.eclipse.jdt.ui.CodingActionSet/org.eclipse.jdt.ui.source.me
> > nu/codeGroup"
> >
> >>but it doesn't seem to work.
> >>
> >>Thanks,
> >>Genady
> >>
> >
> >
> >
>