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:Image not visible on label
Next Topic:Draw2d relative coordinates: move view does not move model?
Goto Forum:
  


Current Time: Thu Dec 08 15:40:54 GMT 2022

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

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

Back to the top