Example usage for org.eclipse.jface.layout GridLayoutFactory extendedMargins

List of usage examples for org.eclipse.jface.layout GridLayoutFactory extendedMargins

Introduction

In this page you can find the example usage for org.eclipse.jface.layout GridLayoutFactory extendedMargins.

Prototype

public GridLayoutFactory extendedMargins(int left, int right, int top, int bottom) 

Source Link

Document

Sets the margins for layouts created with this factory.

Usage

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;
}