Hook into SaveAction [message #323841] |
Wed, 09 January 2008 15:43  |
Eclipse User |
|
|
|
Originally posted by: nclauwers.gmail.com
Hey all,
First of all I'm completely new to making plugins for eclipse.
I want to make a plugin when eclipse starts it just hooks into the global
save command and for example displays an awt messagebox whenever the user
saves a document(.java, .egl doesn't matter).
I've searched for a couple of hours but I couldn't find a working solution.
I've tried to make an extending class from SaveAction and overriding the
run method and then adding it via setGlobalActionHandler method. but
whatever I try, my run method isn't executed.
I also tried to search for the save action via
getGlobalActionHandler(ActionFactory.SAVE.getId()) and I always get a null
value back. Although he can find the COPY command. I also tried to
override the COPY command and he doesn't execute my run method either.
I hope someone can help me.
Thanks in advance,
Niels
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04814 seconds