Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to trap the Save Event?
How to trap the Save Event? [message #96392] Fri, 18 July 2003 11:49 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 class when i try to save
the file. In order to do that i need to trap the save event of Eclipse
IDE. I tried to use a class extending org.eclipse.ui.internal.SaveAction
and in the run method i try to perform some action. Then i try to set the
gloabalActionHandler as my class. Even on doing this i dont get my action
being fired.
Plz provide good suggestions to me.

cheers
Easwar
Re: How to trap the Save Event? [message #96915 is a reply to message #96392] Fri, 18 July 2003 21:53 Go to previous message
Andy Yang is currently offline Andy YangFriend
Messages: 42
Registered: July 2009
Member
Easwar wrote:

> Hi,
>
> I would like to add some functionality to my java class when i try to save
> the file. In order to do that i need to trap the save event of Eclipse
> IDE. I tried to use a class extending org.eclipse.ui.internal.SaveAction
> and in the run method i try to perform some action. Then i try to set the
> gloabalActionHandler as my class. Even on doing this i dont get my action
> being fired.
> Plz provide good suggestions to me.

Is your "java class" an Editor? If so, you can just override the doSave
method.

Apologies if that isn't your situation.

Andy
Previous Topic:Hooks into the Synchronize View Context Menu
Next Topic:how to save merged changes in CompareUI class
Goto Forum:
  


Current Time: Mon Jul 22 00:18:29 GMT 2024

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

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

Back to the top