Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How do I sync the name of a global action?
How do I sync the name of a global action? [message #275614] Tue, 09 November 2004 19:26
Eclipse UserFriend
Originally posted by: e50018.motorola.com

Hi,

I created an action (refreshAction) in my ViewPart, and I hooked it as a
global action:
getViewSite().getActionBars().setGlobalActionHandler(ActionF actory.REFRESH.getId(),
refreshAction);

Everything works fine, and when my view has focus, pressing f5
automatically invokes my refreshAction as well.

My question is the following: I put this action also in my viewer's Menu
Bar. I want to sync the text and accelerator information in my viewer's
menu item with the default REFRESH action's text and accelerator (Under
File menu). How can I do that?

thx
melih
Previous Topic:Decorator enablement: Define my own <objectState> property for IResource
Next Topic:Help on mirroring eclipse update site
Goto Forum:
  


Current Time: Sat Jul 19 08:36:00 EDT 2025

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

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

Back to the top