Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsToolBarManager items stacked vertically instead of horizontally
https://www.eclipse.org/forums/index.php/mv/msg/446486/997286/#msg_997286
ToolBarManager mgr = (ToolBarManager) getViewSite().getActionBars().getToolBarManager();
CustomControlItem item1 = new CustomControlItem("someText");
mgr.add(item1);
CustomControlItem item2 = new CustomControlItem("someText");
mgr.add(item2);
the class CustomControlItem extends ControlContribution and creates a control that extends Button and returns it in its createControl() method.
The problem I'm having is that the two items show up in the toolbar stacked one on top of the other. When they're stacked this way, both labels are unreadable because the toolbar height is not sufficient to display two items vertically. The desired behavior is for them to be placed side by side.
All the sample code I've found through searching adds the items as I do, but no one mentions having the problem I'm seeing. The examples I saw were creating a ToolBarManager instance, but I'm using the one provided by the ViewSite.]]>Mark Leone2013-01-04T22:31:40-00:00Re: ToolBarManager items stacked vertically instead of horizontally
https://www.eclipse.org/forums/index.php/mv/msg/446486/997465/#msg_997465
Mark Leone2013-01-07T16:13:45-00:00