mRoot = new Composite(this, SWT.NONE);
GridLayoutBuilder.create(mRoot).columns(1).columnsEqual().spacing(0).noMargins();
+ GridDataBuilder.create(mRoot).hGrab().hFill();
if (targetData != null) {
addGroup(mRoot, "Views", targetData.getLayoutDescriptors().getViewDescriptors());
Composite group = new Composite(parent, SWT.NONE);
GridLayoutBuilder.create(group).columns(1).columnsEqual().spacing(0).noMargins();
+ GridDataBuilder.create(group).hFill().hGrab();
Toggle toggle = new Toggle(group, uiName);
+ GridDataBuilder.create(toggle).hFill().hGrab();
for (ElementDescriptor desc : descriptors) {
Item item = new Item(group, this, desc);
toggle.addItem(item);
- GridDataBuilder.create(item);
+ GridDataBuilder.create(item).hFill().hGrab();
}
}