1 package org.simantics.g3d.toolbar;
3 import org.eclipse.swt.SWT;
4 import org.eclipse.swt.layout.RowLayout;
5 import org.eclipse.swt.widgets.Composite;
6 import org.eclipse.swt.widgets.Control;
8 public class ToolComposite extends Composite{
10 public ToolComposite(Composite parent, int style) {
11 super(parent, style|SWT.BORDER);
12 RowLayout layout = new RowLayout();
14 layout.marginBottom = 1;
20 Control children[] = getChildren();
21 for (Control c : children)
26 public void relayout() {
27 getParent().layout(true);