Contribute to Eclipse's menus [message #267038] |
Mon, 16 August 2004 08:37  |
Eclipse User |
|
|
|
Originally posted by: "prenom.,nom".sextant.thomson-csf.com
Hi,
I created a plug-in with a new perspective, and I'd like to replace actions of
few Eclipse's menuItems by my own actions. How is it possible to do that?
I hope you'll be able to help me.
Thanks
Fabrice
|
|
|
|
Re: Contribute to Eclipse's menus [message #267256 is a reply to message #267242] |
Tue, 17 August 2004 04:02  |
Eclipse User |
|
|
|
Originally posted by: "prenom.,nom".sextant.thomson-csf.com
Thanks Tobias!
Tobias Neubert a écrit :
>
> Hi Fabrice,
>
> try the following to hook your own actions to the globally available
> eclipse actions. Have a look in org.eclipse.ui.actions.ActionFactory for
> more global actions.
>
> ---------------------------------
>
> IActionBars actionBars = getViewSite().getActionBars();
> actionBars.setGlobalActionHandler(
> ActionFactory.DELETE.getId(), new YourOwnAction());
> ---------------------------
>
> I hope that helps,
> Tobias
>
> JAYLES Fabrice wrote:
>
> > Hi,
>
> > I created a plug-in with a new perspective, and I'd like to replace actions
> of
> > few Eclipse's menuItems by my own actions. How is it possible to do that?
>
> > I hope you'll be able to help me.
>
> > Thanks
>
> > Fabrice
|
|
|
Powered by
FUDForum. Page generated in 0.05268 seconds