Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 09:47 Go to next message
easwaran is currently offline easwaranFriend
Messages: 52
Registered: July 2009
Member
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 11:18 Go to previous messageGo to next message
Emil Einarsson is currently offline Emil EinarssonFriend
Messages: 24
Registered: July 2009
Junior Member
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 13:01 Go to previous messageGo to next message
easwaran is currently offline easwaranFriend
Messages: 52
Registered: July 2009
Member
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 08:42 Go to previous message
easwaran is currently offline easwaranFriend
Messages: 52
Registered: July 2009
Member
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 11:18 Go to previous message
Emil Einarsson is currently offline Emil EinarssonFriend
Messages: 24
Registered: July 2009
Junior Member
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 13:01 Go to previous message
easwaran is currently offline easwaranFriend
Messages: 52
Registered: July 2009
Member
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 08:42 Go to previous message
easwaran is currently offline easwaranFriend
Messages: 52
Registered: July 2009
Member
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: Sun Sep 01 08:29:03 GMT 2024

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

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

Back to the top