Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » CollapsibleButtons in trim area help(cannot resize the buttons)
CollapsibleButtons in trim area help [message #645771] Mon, 20 December 2010 14:11
Luca Ferrari is currently offline Luca FerrariFriend
Messages: 159
Registered: November 2009
Senior Member
Hi all,
as suggested in this thread I'm using collapsible buttons into the trim area to display an outlook-similar button panel.
My plugin.xml contains the following:


and the TrimAreaControlContribution is the following:

public class TrimAreaControlContribution extends
	WorkbenchWindowControlContribution {

    public TrimAreaControlContribution() {

    public TrimAreaControlContribution(String id) {

    protected Control createControl(Composite parent) {
	Composite inner = new Composite(parent, SWT.NONE); 
	GridLayout gl = new GridLayout(1, true); 
	gl.marginBottom = 0; 
	gl.marginHeight = 0; 
	gl.marginWidth = 0; 
	gl.marginHeight = 0; 
	CollapsibleButtons collapsibleButtons = new CollapsibleButtons(parent,
		SWT.NONE, IColorManager.SKIN_BLUE);
	collapsibleButtons.setLayoutData(new GridData(GridData.GRAB_VERTICAL | GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_END));

	for (int i = 0; i < 5; i++) {
	    collapsibleButtons.addButton("Button "+i, "Tooltip "+i, null, null );
	return collapsibleButtons;


The problem is that the widget is added to the right place, but its size is not correct, and so the element appears collapsed (i.e., too small). I cannot resize the toolbar to make the buttons visible so I don't know how to proceed.
Any help will be appreciated.

Previous Topic:CalendarCombo fix / support
Next Topic:PShelf on RAP
Goto Forum:

Current Time: Thu Oct 08 20:34:43 GMT 2015

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

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