Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » dynamically adding new actions to an ApplicationWindow toolbar in standalone JFace
dynamically adding new actions to an ApplicationWindow toolbar in standalone JFace [message #267003] Sun, 15 August 2004 12:33 Go to next message
Eclipse UserFriend
Originally posted by: simon.goddengunn.plus.com

I have created a subclass of ApplicationWindow with a toolbar.

The main component of the application window is a CTabFolder. When I
add new items to this, it can cause the addition of new actions to the
ApplicationWindow's toolbar.

However, it does not matter what I do in terms of adding or removing
actions to/from the toolbar - the toolbar does not change.

Can anyone tell me what I have to do add new actions to the toolbar and
have them made visible after 'createToolBarManager' has completed.
Re: dynamically adding new actions to an ApplicationWindow toolbar in standalone JFace [message #267006 is a reply to message #267003] Sun, 15 August 2004 12:42 Go to previous message
Eclipse UserFriend
Originally posted by: simon.goddengunn.plus.com

Simon Godden wrote:
> I have created a subclass of ApplicationWindow with a toolbar.
>
> The main component of the application window is a CTabFolder. When I
> add new items to this, it can cause the addition of new actions to the
> ApplicationWindow's toolbar.
>
> However, it does not matter what I do in terms of adding or removing
> actions to/from the toolbar - the toolbar does not change.
>
> Can anyone tell me what I have to do add new actions to the toolbar and
> have them made visible after 'createToolBarManager' has completed.

call window.getToolBarManager().update();

RTFJ (Read the fine javadoc)
Previous Topic:Eclipse on Knoppix
Next Topic:Missing first time stack trace in PDE Error Log
Goto Forum:
  


Current Time: Fri Jul 04 15:32:31 EDT 2025

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

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

Back to the top