Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » adding action to toolbar in formpage
adding action to toolbar in formpage [message #490316] Thu, 08 October 2009 07:05 Go to next message
Ido  is currently offline Ido
Messages: 23
Registered: July 2009
Junior Member
I want to add a button to the toolbar in my page that derives from FormPage. I use the code:

Action action = some action...
action.setImageDescriptor(som descriptor...);
toolBarManager.add(action);


When I run the editor I don't see nothing in the place were the button should be. If I'm hovering it with the mouse it changes to a hand icon. But if i click the action doesn't run.
Should I use some MenuManager or something like that?
Re: adding action to toolbar in formpage [message #982271 is a reply to message #490316] Mon, 12 November 2012 21:50 Go to previous message
Alan Cândido is currently offline Alan Cândido
Messages: 4
Registered: November 2011
Junior Member
After you add actions, call:

toolBarManager.update(true);
Previous Topic:Quick fixes list in tooltip
Next Topic:QuickFix Component in Eclipse
Goto Forum:
  


Current Time: Tue Sep 02 12:46:50 EDT 2014

Powered by FUDForum. Page generated in 0.03000 seconds