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 11:05 Go to next message
Ido Mising name is currently offline Ido Mising nameFriend
Messages: 24
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] Tue, 13 November 2012 02:50 Go to previous message
Alan Cândido is currently offline Alan CândidoFriend
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: Sat Nov 22 10:34:37 GMT 2014

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

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