Skip to main content



      Home
Home » Eclipse Projects » Technology Project and PMC » How to override the Save Action of Eclipse File Save Menu
How to override the Save Action of Eclipse File Save Menu [message #55262] Wed, 18 June 2003 05:47 Go to next message
Eclipse UserFriend
Hi,

I would like to add some functionality to my java file when i try to save
the file in Java Perspective. So how can i override the SaveAction of the
File-->Save Menu

thanx in advance for the replies
Re: How to override the Save Action of Eclipse File Save Menu [message #55289 is a reply to message #55262] Wed, 18 June 2003 07:18 Go to previous messageGo to next message
Eclipse UserFriend
Hi.

getEditorSite().getActionBars().setGlobalActionHandler(IWork benchActionConst
ants.SAVE, action)

Where action is an Action that you wish to perform. Note that this does not
extend the default save action unless you inherit it!

Good luck,
Emil

"Easwar" <easwaran2180@yahoo.co.in> skrev i meddelandet
news:bcpcfk$913$1@rogue.oti.com...
> Hi,
>
> I would like to add some functionality to my java file when i try to save
> the file in Java Perspective. So how can i override the SaveAction of the
> File-->Save Menu
>
> thanx in advance for the replies
>
Re: How to override the Save Action of Eclipse File Save Menu [message #55315 is a reply to message #55289] Wed, 18 June 2003 09:01 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Thanx a lot for the reply.

I would also like to know how can i perform this operation when i click on
the save menu item or save button in the toolbar.
I need to perform my action when i click on the save menu.
is it possible to perform
Re: How to override the Save Action of Eclipse File Save Menu [message #55370 is a reply to message #55289] Thu, 19 June 2003 04:42 Go to previous message
Eclipse UserFriend
Hi,

Even on setting the action i am unable to listen it when i try to click on
the save button on the toolbar.

My Action class extends org.eclipse.ui.internal.SaveAction.
Re: How to override the Save Action of Eclipse File Save Menu [message #594289 is a reply to message #55262] Wed, 18 June 2003 07:18 Go to previous message
Eclipse UserFriend
Hi.

getEditorSite().getActionBars().setGlobalActionHandler(IWork benchActionConst
ants.SAVE, action)

Where action is an Action that you wish to perform. Note that this does not
extend the default save action unless you inherit it!

Good luck,
Emil

"Easwar" <easwaran2180@yahoo.co.in> skrev i meddelandet
news:bcpcfk$913$1@rogue.oti.com...
> Hi,
>
> I would like to add some functionality to my java file when i try to save
> the file in Java Perspective. So how can i override the SaveAction of the
> File-->Save Menu
>
> thanx in advance for the replies
>
Re: How to override the Save Action of Eclipse File Save Menu [message #594295 is a reply to message #55289] Wed, 18 June 2003 09:01 Go to previous message
Eclipse UserFriend
Hi,

Thanx a lot for the reply.

I would also like to know how can i perform this operation when i click on
the save menu item or save button in the toolbar.
I need to perform my action when i click on the save menu.
is it possible to perform
Re: How to override the Save Action of Eclipse File Save Menu [message #594308 is a reply to message #55289] Thu, 19 June 2003 04:42 Go to previous message
Eclipse UserFriend
Hi,

Even on setting the action i am unable to listen it when i try to click on
the save button on the toolbar.

My Action class extends org.eclipse.ui.internal.SaveAction.
Previous Topic:After Eclipse, what next??
Next Topic:Persistant property still present
Goto Forum:
  


Current Time: Wed May 07 19:33:05 EDT 2025

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

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

Back to the top