[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: Sharing A Menu

Use a retargetable action.  See RetargetAction.  See
IActionBars.setGlobalACtionHandler

"Castor" <lovoni6@xxxxxxxxxxx> wrote in message
news:b9vsff$urb$1@xxxxxxxxxxxxxxxx
> Hi everybody!
>
> I have 3 plugins : X, Y, Z.
> Y and Z have common Actions (A1 and A2)  and require X (import plugin X).
> I'd like to have one Workbench Window Menu for the three plugins like
this:
>         MyMenu
>                 A1
>                 A2
>                 XA
>                 YA
>                 ZA
>
> Where XA, YA, ZA are Actions specific to X, Y and Z.
>
> When I define MyMenu, A1 and A2 in the plugin.xml file of X and try to use
> then from Y and Z, it does not work.
> When I define MyMenu, A1 and A2 in the plugin.xml file of Y and Z (with
the
> same Ids and menuBarPaths - Classes that handle A1 and A2 are in plugin X)
I
> do have them in the same menu but deplicated. Something like this:
>         MyMenu
>                XA
>                 ---
>                 A1
>                 A2
>                 YA
>                 ---
>                 A1        //duplicated
>                 A2        //duplicated
>                 ZA
>
> Does someone know how to solve this problem?.
> I'd also like to know why there is one extension point for menus and one
for
> actionsets.
>
> Thanks for help.
>
>
>