builder.append(")\n"); //$NON-NLS-1$ Point defaultSpacing = LayoutConstants.getSpacing(); if (defaultSpacing.x != l.horizontalSpacing || defaultSpacing.y != l.verticalSpacing) { builder.append(" .spacing("); //$NON-NLS-1$
/** * Creates a GridLayoutFactory that creates GridLayouts with no margins and * default dialog spacing. * * <p> * Initial values are: * </p> * * <ul> * <li>numColumns(1)</li> * <li>margins(0,0)</li> * <li>extendedMargins(0,0,0,0)</li> * <li>spacing(LayoutConstants.getSpacing())</li> * <li>equalWidth(false)</li> * </ul> * * @return a GridLayoutFactory that creates GridLayouts as though created with * their default constructor * @see #swtDefaults */ public static GridLayoutFactory fillDefaults() { GridLayout layout = new GridLayout(); layout.marginWidth = 0; layout.marginHeight = 0; Point defaultSpacing = LayoutConstants.getSpacing(); layout.horizontalSpacing = defaultSpacing.x; layout.verticalSpacing = defaultSpacing.y; return new GridLayoutFactory(layout); }
/** * Creates a GridLayoutFactory that creates GridLayouts with no margins and * default dialog spacing. * * <p> * Initial values are: * </p> * * <ul> * <li>numColumns(1)</li> * <li>margins(0,0)</li> * <li>extendedMargins(0,0,0,0)</li> * <li>spacing(LayoutConstants.getSpacing())</li> * <li>equalWidth(false)</li> * </ul> * * @return a GridLayoutFactory that creates GridLayouts as though created with * their default constructor * @see #swtDefaults */ public static GridLayoutFactory fillDefaults() { GridLayout layout = new GridLayout(); layout.marginWidth = 0; layout.marginHeight = 0; Point defaultSpacing = LayoutConstants.getSpacing(); layout.horizontalSpacing = defaultSpacing.x; layout.verticalSpacing = defaultSpacing.y; return new GridLayoutFactory(layout); }
/** * Creates a GridLayoutFactory that creates GridLayouts with no margins and * default dialog spacing. * * <p> * Initial values are: * </p> * * <ul> * <li>numColumns(1)</li> * <li>margins(0,0)</li> * <li>extendedMargins(0,0,0,0)</li> * <li>spacing(LayoutConstants.getSpacing())</li> * <li>equalWidth(false)</li> * </ul> * * @return a GridLayoutFactory that creates GridLayouts as though created with * their default constructor * @see #swtDefaults */ public static GridLayoutFactory fillDefaults() { GridLayout layout = new GridLayout(); layout.marginWidth = 0; layout.marginHeight = 0; Point defaultSpacing = LayoutConstants.getSpacing(); layout.horizontalSpacing = defaultSpacing.x; layout.verticalSpacing = defaultSpacing.y; return new GridLayoutFactory(layout); }
/** * Creates a RowLayoutFactory that creates RowLayouts with no margins, fill * behavior, and default dialog spacing. * * <p> * Initial values are: * </p> * * <ul> * <li>margins(0,0)</li> * <li>extendedMargins(0,0,0,0)</li> * <li>wrap(true)</li> * <li>pack(true)</li> * <li>fill(false)</li> * <li>justify(false)</li> * <li>spacing(LayoutConstants.getSpacing().x</li> * </ul> * * @return a RowLayoutFactory that creates RowLayouts with no margins * @see #swtDefaults */ public static RowLayoutFactory fillDefaults() { RowLayout layout = new RowLayout(); layout.marginTop = 0; layout.marginBottom = 0; layout.marginLeft = 0; layout.marginRight = 0; layout.spacing = LayoutConstants.getSpacing().x; return new RowLayoutFactory(layout); }
/** * Creates a RowLayoutFactory that creates RowLayouts with no margins, fill * behavior, and default dialog spacing. * * <p> * Initial values are: * </p> * * <ul> * <li>margins(0,0)</li> * <li>extendedMargins(0,0,0,0)</li> * <li>wrap(true)</li> * <li>pack(true)</li> * <li>fill(false)</li> * <li>justify(false)</li> * <li>spacing(LayoutConstants.getSpacing().x</li> * </ul> * * @return a RowLayoutFactory that creates RowLayouts with no margins * @see #swtDefaults */ public static RowLayoutFactory fillDefaults() { RowLayout layout = new RowLayout(); layout.marginTop = 0; layout.marginBottom = 0; layout.marginLeft = 0; layout.marginRight = 0; layout.spacing = LayoutConstants.getSpacing().x; return new RowLayoutFactory(layout); }
/** * Creates a RowLayoutFactory that creates RowLayouts with no margins, fill * behavior, and default dialog spacing. * * <p> * Initial values are: * </p> * * <ul> * <li>margins(0,0)</li> * <li>extendedMargins(0,0,0,0)</li> * <li>wrap(true)</li> * <li>pack(true)</li> * <li>fill(false)</li> * <li>justify(false)</li> * <li>spacing(LayoutConstants.getSpacing().x</li> * </ul> * * @return a RowLayoutFactory that creates RowLayouts with no margins * @see #swtDefaults */ public static RowLayoutFactory fillDefaults() { RowLayout layout = new RowLayout(); layout.marginTop = 0; layout.marginBottom = 0; layout.marginLeft = 0; layout.marginRight = 0; layout.spacing = LayoutConstants.getSpacing().x; return new RowLayoutFactory(layout); }
valuesView = new ValuesView(tableOfValues, this, shell); GridLayoutFactory.fillDefaults().margins(LayoutConstants.getSpacing()).generateLayout(page); validateSave();
updateDescription(); GridLayoutFactory.fillDefaults().margins(LayoutConstants.getSpacing()).generateLayout(page);
updateDescription(); GridLayoutFactory.fillDefaults().margins(LayoutConstants.getSpacing()).generateLayout(page);
valuesView = new ValuesView(tableOfValues, this, shell); GridLayoutFactory.fillDefaults().margins(LayoutConstants.getSpacing()).generateLayout(page); validateSave();
protected Control createContents(Composite parent) { // initialize the dialog units initializeDialogUnits(parent); Point defaultSpacing = LayoutConstants.getSpacing(); GridLayoutFactory.fillDefaults().margins(LayoutConstants.getMargins()) .spacing(defaultSpacing.x * 2, defaultSpacing.y).numColumns(getColumnCount()).applyTo(parent); GridDataFactory.fillDefaults().grab(true, true).applyTo(parent); createDialogAndButtonArea(parent); return parent; }
@Override protected Control createContents(Composite parent) { // initialize the dialog units initializeDialogUnits(parent); Point defaultSpacing = LayoutConstants.getSpacing(); GridLayoutFactory.fillDefaults().margins(LayoutConstants.getMargins()) .spacing(defaultSpacing.x * 2, defaultSpacing.y).numColumns(getColumnCount()).applyTo(parent); GridDataFactory.fillDefaults().grab(true, true).applyTo(parent); createDialogAndButtonArea(parent); return parent; }
@Override protected Control createContents(Composite parent) { // initialize the dialog units initializeDialogUnits(parent); Point defaultSpacing = LayoutConstants.getSpacing(); GridLayoutFactory.fillDefaults().margins(LayoutConstants.getMargins()) .spacing(defaultSpacing.x * 2, defaultSpacing.y).numColumns(getColumnCount()).applyTo(parent); GridDataFactory.fillDefaults().grab(true, true).applyTo(parent); createDialogAndButtonArea(parent); return parent; }