Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » problem in using the retargatable action
problem in using the retargatable action [message #210648] Thu, 02 March 2006 16:17
Rohit Khariwal is currently offline Rohit KhariwalFriend
Messages: 114
Registered: July 2009
Senior Member
hi,
I have added one action in the menu bar from the fillActionBar() method of the ApplicationActionBarAdvisor.
my code:-
action=new RetargetAction("Action1","Action1");

register(retargetaction);
MenuManager fileMenu = new MenuManager("&File",
IWorkbenchActionConstants.M_FILE);
menuBar.add(fileMenu);
fileMenu.add(action);

and in the view i am trying to bind it with action using globalActionHandler but it is not working. menubar always shows the action disabled.
code:-
getViewSite().getActionBars().setGlobalActionHandler("Action1 ",new createAction(PlatformUI.getWorkbench().getActiveWorkbenchWin dow()));
getViewSite().getActionBars().updateActionBars();
Previous Topic:How to fetch GEF and build using command line?
Next Topic:GEF 3.1.1 update site?
Goto Forum:
  


Current Time: Thu Apr 25 09:38:08 GMT 2024

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

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

Back to the top