Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Contribute to Eclipse's menus
Contribute to Eclipse's menus [message #267038] Mon, 16 August 2004 08:37 Go to next message
Eclipse UserFriend
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 #267242 is a reply to message #267038] Tue, 17 August 2004 03:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: t1.s-neubert.net

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
Re: Contribute to Eclipse's menus [message #267256 is a reply to message #267242] Tue, 17 August 2004 04:02 Go to previous message
Eclipse UserFriend
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
Previous Topic:Visible tabs and whitespace
Next Topic:Best way to create references into online documentation?
Goto Forum:
  


Current Time: Fri May 16 09:41:22 EDT 2025

Powered by FUDForum. Page generated in 0.05268 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top