Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to set global action handler for a RetargetAction in an editor part?
How to set global action handler for a RetargetAction in an editor part? [message #318378] Fri, 27 July 2007 03:31 Go to next message
Eclipse UserFriend
I created a RetargetAction, and reuse it in a view and a custom-writing
editor, follow the extension point description, it said:

view and editor parts may supply a handler for this action using the
standard mechanism for setting a global action handler on their site
using this action's identifier.

that means a RetargetAction need a handler to activate and execute the
behavior, assume that RetagetAction's id is "com.lifesting.action.test",
what I need do during the editor initializing?

Thanks a lot.

David BY Chan
Re: How to set global action handler for a RetargetAction in an editor part? [message #318472 is a reply to message #318378] Mon, 30 July 2007 12:53 Go to previous message
Eclipse UserFriend
Probably
getEditorSite().getActionBars().setGlobalActionHandler(actio nId, new
MyAction()).

Later,
PW
Previous Topic:Eclipse can not start up with -Xmx1024m
Next Topic:Platform Webinar
Goto Forum:
  


Current Time: Tue Jun 10 15:13:28 EDT 2025

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

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

Back to the top