public VBoxLayoutDataAssistantPage(Composite parent, List<ObjectInfo> selection) { super(parent, selection); GridLayoutFactory.create(this).columns(2); { Composite composite = new Composite(this, SWT.NONE); GridLayoutFactory.create(composite).columns(2); addDoubleProperty(composite, "flex", "Flex"); { Group group = addIntegerProperties( composite, "Width", new String[][] { new String[] {"maxWidth", "max"}, new String[] {"minWidth", "min"} }); GridDataFactory.create(group).spanH(2); } } // margins { Group group = addMarginProperty(this, "margins", "Margins for sides"); GridDataFactory.create(group); } }
public TableLayoutAssistantPage(Composite parent, TableLayoutInfo selection) { super(parent, selection); GridLayoutFactory.create(this).columns(2); addIntegerProperty(this, "columns"); addStringProperty(this, "spacing"); addFiller(this); addBooleanProperty(this, "renderHidden"); }
public CenterLayoutAssistantPage(Composite parent, CenterLayoutInfo selection) { super(parent, selection); GridLayoutFactory.create(this).columns(2); { Group optionsGroup = addBooleanProperties( this, "Options", new String[][] { new String[] {"firesEvents", "firesEvents"}, new String[] {"renderHidden", "renderHidden"} }); GridDataFactory.create(optionsGroup).spanH(2).fillH(); } addIntegerProperty(this, "resizeDelay", "resizeDelay"); }