Community
Participate
Working Groups
Dragging a toolbar from the top trim to the side trim should cause the toolbar to be laid out in a vertical arrangement. Looks like the issue is that ToolBarManager has no API to changing/reconfiguring the toolbar orientation, and ToolBarManagerRenderer#createWidget() doesn't re-create the ToolBarManager once created.
Created attachment 220537 [details] One possible fix for re-building the toolbars This exposes a new API method on ToolBarManager #setOrientation(int). To be honest, it seems like a logical addition anyways.
Brian, as I understand the problem it's that the current API contract allows people to expect that the actual swt ToolBar have a life-cycle that matches that of the TBM using it. For myself I'd say that in 4.3 we should just take the chance and get anybody who reports widget disposed errors from cached TB's to fix their code (just use TBM#getControl() rather than caching it). My suspicion is that this is *very* low risk since it'll only occur if a TB is docked in a non-horizontal trim area -and- has the caching issue...I'll take that risk...;-).
I'll mark this as a DUP of 412479 since it has more context... *** This bug has been marked as a duplicate of bug 412479 ***