List of usage examples for org.eclipse.jface.layout GridLayoutFactory extendedMargins
public GridLayoutFactory extendedMargins(int left, int right, int top, int bottom)
From source file:org.eclipse.cdt.internal.ui.workingsets.WorkingSetConfigurationBlock.java
License:Open Source License
/** * Creates the contents of the working set configuration management control block. * /*w w w. j a v a 2 s. c o m*/ * @param parent * the parent composite in which to create my controls * * @return my controls */ public Control createContents(Composite parent) { SashForm sashForm = new SashForm(parent, SWT.VERTICAL | SWT.SMOOTH); GridLayoutFactory layoutFactory = GridLayoutFactory.fillDefaults(); createWorkingSetConfigsArea(sashForm, layoutFactory.extendedMargins(0, 0, 0, 15)); createProjectConfigsArea(sashForm, layoutFactory.extendedMargins(0, 0, 15, 0)); sashForm.setWeights(new int[] { 1, 1 }); contents = sashForm; return sashForm; }