org.eclipse.swt.layout.GridLayout

Here are the examples of the java api class org.eclipse.swt.layout.GridLayout taken from open source projects.

1. GrailsInplaceDialog#createComposites()

Project: grails-ide
File: GrailsInplaceDialog.java
private void createComposites() {
    // Composite for filter text and tree
    composite = new Composite(dialogShell, SWT.RESIZE);
    GridLayout layout = new GridLayout(1, false);
    composite.setLayout(layout);
    composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    line1 = new Composite(composite, SWT.NONE);
    layout = new GridLayout(3, false);
    layout.marginHeight = 0;
    layout.marginWidth = 0;
    line1.setLayout(layout);
    GridDataFactory.fillDefaults().grab(true, false).applyTo(line1);
    createHorizontalSeparator(composite);
    line2 = new Composite(composite, SWT.FILL);
    layout = new GridLayout(3, false);
    layout.marginHeight = 0;
    layout.marginWidth = 0;
    line2.setLayout(layout);
    GridDataFactory.fillDefaults().grab(true, false).applyTo(line2);
}

2. ConsoleInplaceDialog#createComposites()

Project: eclipse-integration-gradle
File: ConsoleInplaceDialog.java
private void createComposites() {
    // Composite for filter text and tree
    composite = new Composite(dialogShell, SWT.RESIZE);
    GridLayout layout = new GridLayout(1, false);
    composite.setLayout(layout);
    composite.setLayoutData(new GridData(GridData.FILL_BOTH));
    line1 = new Composite(composite, SWT.FILL);
    layout = new GridLayout(3, false);
    layout.marginHeight = 0;
    layout.marginWidth = 0;
    line1.setLayout(layout);
    GridDataFactory.fillDefaults().grab(true, false).applyTo(line1);
    createHorizontalSeparator(composite);
    line2 = new Composite(composite, SWT.FILL);
    layout = new GridLayout(3, false);
    layout.marginHeight = 0;
    layout.marginWidth = 0;
    line2.setLayout(layout);
    GridDataFactory.fillDefaults().grab(true, false).applyTo(line2);
}

3. LambdaFunctionGroup#init()

Project: aws-toolkit-eclipse
File: LambdaFunctionGroup.java
// This method is supposed to be called once and before creating the controls
public void init(Composite composite) {
    parentComposite = composite;
    group = newGroup(composite, "Lambda Function Handler");
    GridLayout groupLayout = new GridLayout(1, true);
    groupLayout.marginWidth = 15;
    group.setLayout(groupLayout);
    String description = "Each Lambda function must specify a handler class " + "which the service will use as the entry point to begin execution.";
    setItalicFont(newLink(group, UrlConstants.webLinkListener, description + " <a href=\"" + UrlConstants.LAMBDA_EXECUTION_ROLE_DOC_URL + "\">Learn more</a> about Lambda Java function handler.", 1));
    inputComposite = new Composite(group, SWT.NONE);
    inputComposite.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false));
    GridLayout inputCompLayout = new GridLayout(3, true);
    inputCompLayout.marginHeight = 10;
    inputCompLayout.marginWidth = 10;
    inputComposite.setLayout(inputCompLayout);
}

4. SelectExistingOrCreateNewDialog#createTreeViewer()

Project: Pydev
File: SelectExistingOrCreateNewDialog.java
/* (non-Javadoc)
     * @see org.eclipse.ui.dialogs.ElementTreeSelectionDialog#createTreeViewer(org.eclipse.swt.widgets.Composite)
     */
@Override
protected TreeViewer createTreeViewer(Composite parent) {
    Composite composite = new Composite(parent, SWT.None);
    GridLayout gridLayout = new GridLayout(2, false);
    gridLayout.marginWidth = 0;
    composite.setLayout(gridLayout);
    GridData layoutData = new GridData(GridData.FILL_BOTH);
    composite.setLayoutData(layoutData);
    TreeViewer ret = super.createTreeViewer(composite);
    Composite buttonBox = new Composite(composite, SWT.NULL);
    GridData gridData = new GridData(SWT.END, SWT.FILL, false, false);
    buttonBox.setLayoutData(gridData);
    GridLayout layout = new GridLayout(1, true);
    layout.marginWidth = 0;
    buttonBox.setLayout(layout);
    btAdd = createPushButton(buttonBox, "Add");
    btRemove = createPushButton(buttonBox, "Remove (DEL)");
    return ret;
}

5. BundleContentPage#createRightPanel()

Project: bndtools
File: BundleContentPage.java
void createRightPanel(IManagedForm mform, final Composite parent) {
    FormToolkit toolkit = mform.getToolkit();
    BundleCalculatedImportsPart importsPart = new BundleCalculatedImportsPart(parent, toolkit, Section.TITLE_BAR | Section.EXPANDED);
    mform.addPart(importsPart);
    importPatternListPart = new ImportPatternsListPart(parent, toolkit, Section.TITLE_BAR | Section.TWISTIE);
    mform.addPart(importPatternListPart);
    GridLayout layout;
    GridData gd;
    layout = new GridLayout();
    parent.setLayout(layout);
    gd = new GridData(SWT.FILL, SWT.FILL, true, true);
    gd.widthHint = 100;
    gd.heightHint = 200;
    importsPart.getSection().setLayoutData(gd);
    gd = new GridData(SWT.FILL, SWT.FILL, true, false);
    importPatternListPart.getSection().setLayoutData(gd);
}

6. FindAnnotateDialog#createDirectionGroup()

Project: uima-uimaj
File: FindAnnotateDialog.java
/**
   * Creates the group to specify the direction of the search.
   * 
   * @param parent
   * 
   * @return
   */
private Composite createDirectionGroup(Composite parent) {
    Composite panel = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.marginWidth = 0;
    layout.marginHeight = 0;
    panel.setLayout(layout);
    Group group = new Group(panel, SWT.SHADOW_ETCHED_IN);
    group.setText("Direction");
    GridLayout groupLayout = new GridLayout();
    groupLayout.numColumns = 2;
    group.setLayout(groupLayout);
    group.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
    forwardRadioButton = new Button(group, SWT.RADIO | SWT.LEFT);
    forwardRadioButton.setText("Forward");
    forwardRadioButton.setSelection(true);
    Button backwardRadioButton = new Button(group, SWT.RADIO | SWT.LEFT);
    backwardRadioButton.setText("Backward");
    return panel;
}

7. InputWorkItemIDDialog#hookAddToDialogArea()

Project: team-explorer-everywhere
File: InputWorkItemIDDialog.java
@Override
protected void hookAddToDialogArea(final Composite dialogArea) {
    final GridLayout layout = new GridLayout(1, false);
    layout.marginWidth = getHorizontalMargin();
    layout.marginHeight = getVerticalMargin();
    layout.horizontalSpacing = getHorizontalSpacing();
    layout.verticalSpacing = getVerticalSpacing();
    dialogArea.setLayout(layout);
    final Label label = new Label(dialogArea, SWT.NONE);
    //$NON-NLS-1$
    label.setText(Messages.getString("InputWorkItemIdDialog.EnterIdsLabelText"));
    text = new Text(dialogArea, SWT.BORDER | SWT.MULTI | SWT.WRAP);
    GridDataBuilder.newInstance().hGrab().hFill().vGrab().vFill().applyTo(text);
    AutomationIDHelper.setWidgetID(text, TEXT_ID);
    initialPopulate();
    ControlSize.setCharWidthHint(text, 80);
    ControlSize.setCharHeightHint(text, 10);
}

8. UnshelveDialog#hookAddToDialogArea()

Project: team-explorer-everywhere
File: UnshelveDialog.java
/**
     * {@inheritDoc}
     */
@Override
protected void hookAddToDialogArea(final Composite dialogArea) {
    final GridLayout dialogLayout = new GridLayout();
    dialogLayout.marginWidth = getHorizontalMargin();
    dialogLayout.marginHeight = getVerticalMargin();
    dialogLayout.horizontalSpacing = getHorizontalSpacing();
    dialogLayout.verticalSpacing = getVerticalSpacing();
    dialogArea.setLayout(dialogLayout);
    shelvesetSearchControl = new ShelvesetSearchControl(dialogArea, SWT.NONE, true, repository);
    shelvesetSearchControl.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true));
    shelvesetSearchControl.addUnshelveListener(new ShelvesetSearchUnshelveListener() {

        @Override
        public void onShelvesetSearchUnshelve(final ShelvesetSearchUnshelveEvent event) {
            final Shelveset[] shelvesets = shelvesetSearchControl.getSelectedShelvesets();
            //$NON-NLS-1$
            Check.notNull(shelvesets, "shelvesets");
            //$NON-NLS-1$
            Check.isTrue(shelvesets.length == 1, "shelvesets.length == 1");
            setReturnCode(IDialogConstants.OK_ID);
            close();
        }
    });
}

9. FindShelvesetDialog#hookAddToDialogArea()

Project: team-explorer-everywhere
File: FindShelvesetDialog.java
/**
     * {@inheritDoc}
     */
@Override
protected void hookAddToDialogArea(final Composite dialogArea) {
    final GridLayout dialogLayout = new GridLayout();
    dialogLayout.marginWidth = getHorizontalMargin();
    dialogLayout.marginHeight = getVerticalMargin();
    dialogLayout.horizontalSpacing = getHorizontalSpacing();
    dialogLayout.verticalSpacing = getVerticalSpacing();
    dialogArea.setLayout(dialogLayout);
    shelvesetSearchControl = new ShelvesetSearchControl(dialogArea, SWT.NONE, false, repository);
    final GridData shelvesetSearchControlData = new GridData(GridData.FILL, GridData.FILL, true, true);
    shelvesetSearchControlData.widthHint = getMinimumMessageAreaWidth();
    shelvesetSearchControl.setLayoutData(shelvesetSearchControlData);
}

10. ConflictResolutionEncodingDialog#hookAddToDialogArea()

Project: team-explorer-everywhere
File: ConflictResolutionEncodingDialog.java
@Override
protected void hookAddToDialogArea(final Composite dialogArea) {
    final GridLayout layout = new GridLayout(1, true);
    layout.marginWidth = getHorizontalMargin();
    layout.marginHeight = getVerticalMargin();
    layout.horizontalSpacing = getHorizontalSpacing();
    layout.verticalSpacing = getVerticalSpacing();
    dialogArea.setLayout(layout);
    final Label descriptionLabel = new Label(dialogArea, SWT.NONE);
    //$NON-NLS-1$
    descriptionLabel.setText(Messages.getString("ConflictResolutionEncodingDialog.DescriptionLabelText"));
    encodingSelectionControl = new ConflictEncodingSelectionControl(dialogArea, SWT.NONE);
    GridDataBuilder.newInstance().hGrab().hFill().applyTo(encodingSelectionControl);
    if (conflictDescription != null) {
        encodingSelectionControl.setConflictDescription(conflictDescription);
    }
}

11. ApplyLabelDialog#createButtonBar()

Project: team-explorer-everywhere
File: ApplyLabelDialog.java
@Override
protected Control createButtonBar(final Composite parent) {
    final Composite buttonBar = new Composite(parent, SWT.NONE);
    final GridLayout buttonBarLayout = new GridLayout(1, true);
    buttonBarLayout.marginWidth = getHorizontalMargin();
    buttonBarLayout.marginHeight = getVerticalMargin();
    buttonBarLayout.horizontalSpacing = getHorizontalSpacing();
    buttonBarLayout.verticalSpacing = getVerticalSpacing();
    buttonBar.setLayout(buttonBarLayout);
    GridDataBuilder.newInstance().hAlignRight().vAlignCenter().applyTo(buttonBar);
    if (WindowSystemProperties.getDefaultButton() == IDialogConstants.OK_ID) {
        createCancelButton(buttonBar);
        createOkButton(buttonBar);
    } else {
        createOkButton(buttonBar);
        createCancelButton(buttonBar);
    }
    return buttonBar;
}

12. LineItemInformationDialog#hookAddToDialogArea()

Project: team-explorer-everywhere
File: LineItemInformationDialog.java
@Override
protected void hookAddToDialogArea(final Composite dialogArea) {
    Composite composite = dialogArea;
    if (groupBoxTitle != null) {
        SWTUtil.fillLayout(dialogArea, SWT.NONE, getHorizontalMargin(), getVerticalMargin(), getSpacing());
        final Group group = new Group(dialogArea, SWT.NONE);
        group.setText(groupBoxTitle);
        composite = group;
    }
    final GridLayout layout = new GridLayout(2, false);
    layout.marginWidth = getHorizontalMargin() / 2;
    layout.marginHeight = getVerticalMargin();
    layout.verticalSpacing = getVerticalSpacing() * 2;
    layout.horizontalSpacing = getHorizontalSpacing();
    composite.setLayout(layout);
    for (final Iterator it = lines.iterator(); it.hasNext(); ) {
        final String[] line = (String[]) it.next();
        addLineWidgets(line[0], line[1], composite);
    }
}

13. ServerListDialog#hookAddToDialogArea()

Project: team-explorer-everywhere
File: ServerListDialog.java
@Override
protected void hookAddToDialogArea(final Composite dialogArea) {
    final GridLayout layout = new GridLayout(1, true);
    layout.horizontalSpacing = getHorizontalSpacing();
    layout.verticalSpacing = getVerticalSpacing();
    layout.marginWidth = getHorizontalMargin();
    layout.marginHeight = getVerticalMargin();
    dialogArea.setLayout(layout);
    final Label label = new Label(dialogArea, SWT.NONE);
    //$NON-NLS-1$
    label.setText(Messages.getString("ServerListDialog.TfsLabelText"));
    GridDataBuilder.newInstance().hGrab().hFill().applyTo(label);
    serverListControl = new ServerListControl(dialogArea, SWT.NONE);
    serverListControl.setServerList(serverList);
    GridDataBuilder.newInstance().hGrab().hFill().vGrab().vFill().applyTo(serverListControl);
}

14. AddServerDialog#hookAddToDialogArea()

Project: team-explorer-everywhere
File: AddServerDialog.java
@Override
protected void hookAddToDialogArea(final Composite dialogArea) {
    final GridLayout gridLayout = new GridLayout(1, false);
    gridLayout.marginWidth = getHorizontalMargin();
    gridLayout.marginHeight = getVerticalMargin();
    gridLayout.horizontalSpacing = getHorizontalSpacing();
    gridLayout.verticalSpacing = getVerticalSpacing();
    dialogArea.setLayout(gridLayout);
    addServerControl = new AddServerControl(dialogArea, SWT.NONE);
    GridDataBuilder.newInstance().grab().fill().applyTo(addServerControl);
    setOptionResizableDirections(SWT.HORIZONTAL);
}

15. VersionPickerControl#createDateControls()

Project: team-explorer-everywhere
File: VersionPickerControl.java
private Control createDateControls(final Composite parent) {
    final Composite composite = SWTUtil.createComposite(parent);
    final GridLayout layout = new GridLayout(2, false);
    layout.marginWidth = 0;
    layout.marginHeight = 0;
    layout.horizontalSpacing = getHorizontalSpacing();
    layout.verticalSpacing = getVerticalSpacing();
    composite.setLayout(layout);
    //$NON-NLS-1$
    SWTUtil.createLabel(composite, Messages.getString("VersionPickerControl.DateLabelText"));
    datepicker = new DatepickerCombo(composite, SWT.BORDER);
    GridDataBuilder.newInstance().hGrab().hFill().applyTo(datepicker);
    datepicker.addModifyListener(new ModifyListener() {

        @Override
        public void modifyText(final ModifyEvent e) {
            onDatePickerChanged();
        }
    });
    return composite;
}

16. RollbackItemControl#createTypeOfRollbackArea()

Project: team-explorer-everywhere
File: RollbackItemControl.java
private Control createTypeOfRollbackArea(final Composite parent) {
    final Composite composite = new Composite(parent, SWT.NONE);
    final GridLayout layout = new GridLayout();
    layout.marginWidth = getHorizontalMargin();
    layout.marginHeight = getVerticalMargin();
    layout.horizontalSpacing = getHorizontalSpacing();
    layout.verticalSpacing = getVerticalSpacing();
    composite.setLayout(layout);
    final Label itemsToRollbackLabel = new Label(composite, SWT.NONE);
    //$NON-NLS-1$
    itemsToRollbackLabel.setText(Messages.getString("RollbackItemControl.ChooseOperationType"));
    GridDataBuilder.newInstance().hSpan(layout).applyTo(itemsToRollbackLabel);
    createSingleChangesetOption(composite);
    createChangesetRangeOption(composite);
    createSpecificVersionOption(composite);
    return composite;
}

17. RollbackItemControl#createControls()

Project: team-explorer-everywhere
File: RollbackItemControl.java
private void createControls(final Composite composite) {
    final GridLayout layout = new GridLayout();
    layout.marginWidth = 0;
    layout.marginHeight = 0;
    layout.horizontalSpacing = getHorizontalSpacing();
    layout.verticalSpacing = getVerticalSpacing();
    setLayout(layout);
    final Control itemsToRollbackArea = createItemsToRollbackArea(composite);
    GridDataBuilder.newInstance().hGrab().hFill().applyTo(itemsToRollbackArea);
    final Control typeOfRollbackArea = createTypeOfRollbackArea(composite);
    GridDataBuilder.newInstance().hGrab().hFill().applyTo(typeOfRollbackArea);
    rollbackOperationTypeChanged(rollbackOperationType);
}

18. NotesCheckinControl#updateBusyControl()

Project: team-explorer-everywhere
File: NotesCheckinControl.java
private void updateBusyControl() {
    final Composite busyControl = new Composite(rootComposite, SWT.NONE);
    final GridLayout busyLayout = new GridLayout(1, false);
    busyLayout.marginWidth = getHorizontalMargin();
    busyLayout.marginHeight = getVerticalMargin();
    busyLayout.horizontalSpacing = getHorizontalSpacing();
    busyLayout.verticalSpacing = getVerticalSpacing();
    busyControl.setLayout(busyLayout);
    final Label busyLabel = new Label(busyControl, SWT.NONE);
    //$NON-NLS-1$
    busyLabel.setText(BUSY_MESSAGE + Messages.getString("NotesCheckinControl.BusyLabelText"));
    GridDataBuilder.newInstance().hFill().vFill().applyTo(busyLabel);
    setRootCompositeContent(busyControl);
}

19. SymfonyPreferencePage#createContents()

Project: Symfony-2-Eclipse-Plugin
File: SymfonyPreferencePage.java
@Override
protected Control createContents(Composite parent) {
    initializeDialogUnits(parent);
    Composite result = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.marginHeight = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN);
    layout.marginWidth = 0;
    layout.verticalSpacing = convertVerticalDLUsToPixels(10);
    layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);
    result.setLayout(layout);
    PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, SymfonyUiPlugin.PLUGIN_ID + "." + "symfony_preferences");
    return super.createContents(parent);
}

20. ServiceInputDialog#createDialogArea()

Project: Symfony-2-Eclipse-Plugin
File: ServiceInputDialog.java
@Override
protected Control createDialogArea(Composite parent) {
    Composite composite = (Composite) super.createDialogArea(parent);
    Composite inner = new Composite(composite, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.marginHeight = 0;
    layout.marginWidth = 0;
    layout.numColumns = 2;
    inner.setLayout(layout);
    fNameDialogField.doFillIntoGrid(inner, 2);
    fClassDialogField.doFillIntoGrid(inner, 2);
    LayoutUtil.setHorizontalGrabbing(fNameDialogField.getTextControl(null));
    LayoutUtil.setWidthHint(fNameDialogField.getTextControl(null), convertWidthInCharsToPixels(45));
    fNameDialogField.postSetFocusOnDialogField(parent.getDisplay());
    applyDialogFont(composite);
    return composite;
}

21. LibraryPreferencePage#createContents()

Project: Symfony-2-Eclipse-Plugin
File: LibraryPreferencePage.java
@Override
protected Control createContents(Composite parent) {
    initializeDialogUnits(parent);
    Composite result = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.marginHeight = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN);
    layout.marginWidth = 0;
    layout.verticalSpacing = convertVerticalDLUsToPixels(10);
    layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);
    result.setLayout(layout);
    return super.createContents(parent);
}

22. ConvertProjectsPage#createControl()

Project: sling
File: ConvertProjectsPage.java
public void createControl(Composite parent) {
    Composite container = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.numColumns = 2;
    layout.marginHeight = 0;
    layout.marginWidth = 5;
    container.setLayout(layout);
    Table table = new Table(container, SWT.MULTI | SWT.CHECK | SWT.BORDER);
    GridData gd = new GridData(GridData.FILL_BOTH);
    table.setLayoutData(gd);
    ctv = new CheckboxTableViewer(table);
    ctv.setLabelProvider(new ProjectLabelProvider());
    ctv.add(projects.toArray());
    ctv.setCheckedElements(initialSelection);
    setControl(container);
    Dialog.applyDialogFont(container);
}

23. ServerStatusView#createPartControl()

Project: scouter
File: ServerStatusView.java
public void createPartControl(final Composite parent) {
    shell = parent.getShell();
    Composite composite = new Composite(parent, SWT.NONE);
    GridLayout gLayout = new GridLayout(1, true);
    gLayout.horizontalSpacing = 0;
    gLayout.marginHeight = 0;
    gLayout.marginWidth = 0;
    composite.setLayout(gLayout);
    Composite textComposite = new Composite(composite, SWT.NONE);
    textComposite.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true));
    textComposite.setLayout(new FillLayout());
    browser = new Browser(textComposite, SWT.BORDER);
}

24. ExtractMethodComposite#createArgumentsButton()

Project: Pydev
File: ExtractMethodComposite.java
private void createArgumentsButton(Composite argumentsTableComposite) {
    Composite argumentsButtonComposite = new Composite(argumentsTableComposite, SWT.NONE);
    GridLayout compositeLayout = new GridLayout();
    compositeLayout.makeColumnsEqualWidth = true;
    FormData compositeLData = new FormData(0, 0);
    compositeLData.width = 80;
    compositeLData.bottom = new FormAttachment(1000, 1000, 0);
    compositeLData.right = new FormAttachment(1000, 1000, 0);
    compositeLData.top = new FormAttachment(0, 1000, 0);
    argumentsButtonComposite.setLayoutData(compositeLData);
    argumentsButtonComposite.setLayout(compositeLayout);
    editArgumentsButton = createButton(argumentsButtonComposite, Messages.extractMethodEditButton);
    editArgumentsButton.setEnabled(false);
    upArgumentsButton = createButton(argumentsButtonComposite, Messages.extractMethodUpButton);
    upArgumentsButton.setEnabled(false);
    downArgumentsButton = createButton(argumentsButtonComposite, Messages.extractMethodDownButton);
    downArgumentsButton.setEnabled(false);
}

25. ExtractMethodComposite#createArguments()

Project: Pydev
File: ExtractMethodComposite.java
private void createArguments(Composite control) {
    argumentsComposite = new Composite(control, SWT.NONE);
    GridLayout compositeLayout = new GridLayout();
    compositeLayout.makeColumnsEqualWidth = true;
    GridData compositeLData = new GridData();
    compositeLData.grabExcessHorizontalSpace = true;
    compositeLData.horizontalAlignment = GridData.FILL;
    compositeLData.grabExcessVerticalSpace = true;
    compositeLData.verticalAlignment = GridData.FILL;
    argumentsComposite.setLayoutData(compositeLData);
    argumentsComposite.setLayout(compositeLayout);
    createArgumentsLabel(argumentsComposite);
    createArgumentsTable(argumentsComposite);
}

26. ConstructorFieldPage#createMainComp()

Project: Pydev
File: ConstructorFieldPage.java
private Composite createMainComp(Composite parent) {
    GridData gridData12 = new GridData();
    gridData12.horizontalSpan = 2;
    GridData gridData11 = new GridData();
    gridData11.horizontalSpan = 2;
    GridLayout gridLayout2 = new GridLayout();
    gridLayout2.numColumns = 2;
    GridData gridData = new GridData();
    gridData.horizontalAlignment = GridData.FILL;
    gridData.grabExcessHorizontalSpace = true;
    gridData.grabExcessVerticalSpace = true;
    gridData.verticalAlignment = GridData.FILL;
    mainComp = new Composite(parent, SWT.NONE);
    mainComp.setLayoutData(gridData);
    cLabel = new CLabel(mainComp, SWT.NONE);
    cLabel.setText(Messages.constructorFieldSelect);
    cLabel.setLayoutData(gridData11);
    createTreeComp();
    createButtonComp();
    mainComp.setLayout(gridLayout2);
    createComboComp();
    return mainComp;
}

27. PyConfigureExceptionDialog#createSelectionButtons()

Project: Pydev
File: PyConfigureExceptionDialog.java
/**
     * Add the selection and deselection buttons to the dialog.
     * 
     * @param composite
     *            org.eclipse.swt.widgets.Composite
     */
protected void createSelectionButtons(Composite composite) {
    Composite buttonComposite = new Composite(composite, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.numColumns = 0;
    layout.marginWidth = 0;
    layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);
    buttonComposite.setLayout(layout);
    buttonComposite.setLayoutData(new GridData(SWT.END, SWT.TOP, true, false));
    createSelectAll(buttonComposite);
    createDeselectAll(buttonComposite);
}

28. MainModuleTab#createControl()

Project: Pydev
File: MainModuleTab.java
/*
     * (non-Javadoc)
     * @see org.eclipse.debug.ui.ILaunchConfigurationTab#createControl(org.eclipse.swt.widgets.Composite)
     */
@Override
public void createControl(Composite parent) {
    Composite composite = new Composite(parent, SWT.NONE);
    setControl(composite);
    GridLayout gridLayout = new GridLayout();
    composite.setLayout(gridLayout);
    fProjectBlock.createControl(composite);
    fMainModuleBlock.createControl(composite);
    fPythonPathBlock.createControl(composite);
    // Add a modify listener, that updates the module block
    // when the selected project changes
    fProjectBlock.addModifyListener(fMainModuleBlock.getProjectModifyListener());
}

29. WorkingDirectoryBlock#createComposite()

Project: Pydev
File: WorkingDirectoryBlock.java
/**
     * Creates a Composite widget
     * @param parent the parent composite to add this composite to
     * @param columns the number of columns within the composite
     * @param hspan the horizontal span the composite should take up on the parent
     * @param fill the style for how this composite should fill into its parent
     * Can be one of <code>GridData.FILL_HORIZONAL</code>, <code>GridData.FILL_BOTH</code> or <code>GridData.FILL_VERTICAL</code>
     * @param marginwidth the width of the margin to place around the composite (default is 5, specified by GridLayout)
     * @param marginheight the height of the margin to place around the composite (default is 5, specified by GridLayout)
     * @return the new group
     */
private static Composite createComposite(Composite parent, Font font, int columns, int hspan, int fill, int marginwidth, int marginheight) {
    Composite g = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout(columns, false);
    layout.marginWidth = marginwidth;
    layout.marginHeight = marginheight;
    g.setLayout(layout);
    g.setFont(font);
    GridData gd = new GridData(fill);
    gd.horizontalSpan = hspan;
    g.setLayoutData(gd);
    return g;
}

30. ProjectFolderSelectionGroup#createContents()

Project: Pydev
File: ProjectFolderSelectionGroup.java
/**
     * Creates the contents of the composite.
     * 
     * @param heightHint height hint for the drill down composite
     */
public void createContents(String message, int heightHint) {
    GridLayout layout = new GridLayout();
    layout.marginWidth = 0;
    setLayout(layout);
    setLayoutData(new GridData(GridData.FILL_BOTH));
    Label label = new Label(this, SWT.WRAP);
    label.setText(message);
    label.setFont(this.getFont());
    if (allowNewContainerName) {
        containerNameField = new Text(this, SWT.SINGLE | SWT.BORDER);
        containerNameField.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
        containerNameField.addListener(SWT.Modify, listener);
        containerNameField.setFont(this.getFont());
    } else {
        // filler...
        new Label(this, SWT.NONE);
    }
    createTreeViewer(heightHint);
    Dialog.applyDialogFont(this);
}

31. KeyAssistDialog#createDialogArea()

Project: Pydev
File: KeyAssistDialog.java
/**
     * Creates the content area for the key assistant. This creates a table and
     * places it inside the composite. The composite will contain a list of all
     * the key bindings.
     * 
     * @param parent
     *            The parent composite to contain the dialog area; must not be
     *            <code>null</code>.
     */
@Override
protected final Control createDialogArea(final Composite parent) {
    // First, register the shell type with the context support
    registerShellType();
    // Create a composite for the dialog area.
    final Composite composite = new Composite(parent, SWT.NONE);
    final GridLayout compositeLayout = new GridLayout();
    compositeLayout.marginHeight = 0;
    compositeLayout.marginWidth = 0;
    composite.setLayout(compositeLayout);
    composite.setLayoutData(new GridData(GridData.FILL_BOTH));
    composite.setBackground(parent.getBackground());
    // Layout the partial matches.
    if (keybindingToActionInfo.isEmpty()) {
        createEmptyDialogArea(composite);
    } else {
        createTableDialogArea(composite);
    }
    return composite;
}

32. KarafFeaturesFormPage#createFormContent()

Project: karaf-eik
File: KarafFeaturesFormPage.java
@Override
protected void createFormContent(final IManagedForm managedForm) {
    final GridLayout layout = new GridLayout(2, true);
    GridData data = new GridData(GridData.FILL_BOTH);
    managedForm.getForm().getBody().setLayout(layout);
    managedForm.getForm().getBody().setLayoutData(data);
    managedForm.getForm().setText("Manage Platform Features");
    final Composite left = managedForm.getToolkit().createComposite(managedForm.getForm().getBody());
    data = new GridData(GridData.FILL_BOTH);
    left.setLayout(new GridLayout(1, true));
    left.setLayoutData(data);
    final Composite right = managedForm.getToolkit().createComposite(managedForm.getForm().getBody());
    data = new GridData(GridData.FILL_BOTH);
    right.setLayout(new GridLayout(1, false));
    right.setLayoutData(data);
}

33. KarafConfigurationTab#createControl()

Project: karaf-eik
File: KarafConfigurationTab.java
@Override
public void createControl(final Composite parent) {
    control = new Composite(parent, SWT.NONE);
    final GridLayout layout = new GridLayout();
    control.setLayout(layout);
    final GridData gd = new GridData(GridData.FILL_HORIZONTAL);
    control.setLayoutData(gd);
    createConsoleBlock(control);
    createFeaturesBlock(control);
    setControl(control);
    Dialog.applyDialogFont(control);
    PlatformUI.getWorkbench().getHelpSystem().setHelp(control, ID);
}

34. SootConfigManagerDialog#createSpecialButtonBar()

Project: JAADAS
File: SootConfigManagerDialog.java
/*
	 * @see Dialog#createButtonBar(Composite)
	 */
protected Control createSpecialButtonBar(Composite parent) {
    Composite composite = new Composite(parent, SWT.NULL);
    GridLayout layout = new GridLayout();
    layout.numColumns = 1;
    composite.setLayout(layout);
    composite.setLayoutData(new GridData(GridData.FILL_VERTICAL));
    applyDialogFont(composite);
    composite.setLayout(layout);
    GridData data = new GridData(GridData.VERTICAL_ALIGN_END | GridData.HORIZONTAL_ALIGN_CENTER);
    composite.setLayoutData(data);
    // Add the buttons to the button bar.
    createSpecialButtonsForButtonBar(composite);
    return composite;
}

35. SchemaEditorComposite#createComposite1()

Project: idecore
File: SchemaEditorComposite.java
// This method initializes composite1
private void createComposite1() {
    GridData gridData2 = new GridData();
    gridData2.horizontalSpan = 2;
    gridData2.grabExcessVerticalSpace = true;
    gridData2.horizontalAlignment = GridData.FILL;
    gridData2.verticalAlignment = GridData.FILL;
    gridData2.grabExcessHorizontalSpace = true;
    GridData gridData1 = new GridData();
    gridData1.grabExcessHorizontalSpace = true;
    GridLayout gridLayout1 = new GridLayout();
    gridLayout1.numColumns = 2;
    composite1 = new Composite(sashForm, SWT.NONE);
    composite1.setLayout(gridLayout1);
    Schema = new CLabel(composite1, SWT.NONE);
    Schema.setText("Schema");
    Schema.setLayoutData(gridData1);
    buttonRefresh = new Button(composite1, SWT.NONE);
    buttonRefresh.setText("Refresh Schema");
    tree = new Tree(composite1, SWT.NONE);
    tree.setLayoutData(gridData2);
}

36. SchemaEditorComposite#createComposite()

Project: idecore
File: SchemaEditorComposite.java
// This method initializes composite
private void createComposite() throws ForceConnectionException, ForceRemoteException {
    GridData gridData3 = new GridData();
    gridData3.grabExcessHorizontalSpace = true;
    GridLayout gridLayout2 = new GridLayout();
    gridLayout2.numColumns = 2;
    composite = new Composite(sashForm, SWT.NONE);
    composite.setLayout(gridLayout2);
    cLabel = new CLabel(composite, SWT.NONE);
    cLabel.setText("Query Results");
    cLabel.setLayoutData(gridData3);
    buttonRun = new Button(composite, SWT.NONE);
    buttonRun.setText("Run Me");
    createSashForm1();
}

37. TestConfigurationTab#createControl()

Project: idecore
File: TestConfigurationTab.java
@VisibleForTesting
@Override
public void createControl(Composite parent) {
    if (Utils.isEmpty(parent))
        return;
    Composite comp = createComposite(parent, SWT.NONE);
    setControl(comp);
    colorGray = comp.getDisplay().getSystemColor(SWT.COLOR_GRAY);
    colorBlack = comp.getDisplay().getSystemColor(SWT.COLOR_BLACK);
    GridLayout grid = new GridLayout();
    comp.setLayout(grid);
    // This tab allows test class/method/suites selection
    createSingleTestSelector(comp);
    createSuiteSelector(comp);
}

38. ProjectConfigurationTab#createControl()

Project: idecore
File: ProjectConfigurationTab.java
@VisibleForTesting
@Override
public void createControl(Composite parent) {
    if (Utils.isEmpty(parent))
        return;
    Composite comp = createComposite(parent, SWT.NONE);
    setControl(comp);
    colorGray = comp.getDisplay().getSystemColor(SWT.COLOR_GRAY);
    colorBlack = comp.getDisplay().getSystemColor(SWT.COLOR_BLACK);
    GridLayout grid = new GridLayout();
    comp.setLayout(grid);
    // This tab allows project & log selections
    createProjectSelector(comp);
    createLogEditor(comp);
}

39. DeploymentOptions#createContents()

Project: idecore
File: DeploymentOptions.java
@Override
protected Control createContents(Composite parent) {
    Composite deploymentComposite = new Composite(parent, SWT.NONE);
    GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 1;
    deploymentComposite.setLayout(gridLayout);
    deploymentComposite.setLayoutData(new GridData(SWT.BEGINNING, SWT.TOP, false, false));
    preferToolingDeploymentCheckbox = new Button(deploymentComposite, SWT.CHECK);
    preferToolingDeploymentCheckbox.setText(UIMessages.getString("DeploymentOptions_UseToolingAPI"));
    loadFromPreferences();
    return deploymentComposite;
}

40. GeneralPreferencePage#createContents()

Project: idecore
File: GeneralPreferencePage.java
@Override
protected Control createContents(Composite parent) {
    Composite entryTable = new Composite(parent, 0);
    GridData data = new GridData(768);
    data.grabExcessHorizontalSpace = true;
    entryTable.setLayoutData(data);
    GridLayout layout = new GridLayout();
    entryTable.setLayout(layout);
    Composite colorComposite = new Composite(entryTable, 0);
    colorComposite.setLayout(new GridLayout());
    colorComposite.setLayoutData(new GridData(768));
    return entryTable;
}

41. DisplayGrailsVersionSection#createContents()

Project: grails-ide
File: DisplayGrailsVersionSection.java
@Override
public void createContents(Composite page) {
    GridDataFactory grabHorizontal = GridDataFactory.fillDefaults().grab(true, false);
    Composite section = new Composite(page, SWT.NONE);
    GridLayout layout = new GridLayout(2, false);
    section.setLayout(layout);
    grabHorizontal.applyTo(section);
    new Label(section, SWT.NONE).setText("Required Grails Version: ");
    final Label grailsVersionLabel = new Label(section, SWT.NONE);
    grailsVersion.addListener(new ValueListener<GrailsVersion>() {

        public void gotValue(LiveExpression<GrailsVersion> exp, GrailsVersion v) {
            grailsVersionLabel.setText("" + v);
        }
    });
    grabHorizontal.applyTo(grailsVersionLabel);
}

42. GrailsLaunchMainTab#createProjectEditor()

Project: grails-ide
File: GrailsLaunchMainTab.java
/**
	 * Creates the widgets for specifying a main type.
	 * 
	 * @param parent the parent composite
	 */
protected void createProjectEditor(Composite parent) {
    Font font = parent.getFont();
    Group group = new Group(parent, SWT.NONE);
    group.setText(LauncherMessages.AbstractJavaMainTab_0);
    GridData gd = new GridData(GridData.FILL_HORIZONTAL);
    group.setLayoutData(gd);
    GridLayout layout = new GridLayout();
    layout.numColumns = 2;
    group.setLayout(layout);
    group.setFont(font);
    fProjText = new Text(group, SWT.SINGLE | SWT.BORDER);
    gd = new GridData(GridData.FILL_HORIZONTAL);
    fProjText.setLayoutData(gd);
    fProjText.setFont(font);
    fProjText.addModifyListener(fListener);
    fProjText.setEditable(false);
    fProjButton = createPushButton(group, LauncherMessages.AbstractJavaMainTab_1, null);
    fProjButton.addSelectionListener(fListener);
}

43. RunOnServerPropertyPage#createContents()

Project: grails-ide
File: RunOnServerPropertyPage.java
@Override
protected Control createContents(Composite parent) {
    Composite page = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout(1, false);
    layout.marginHeight = 1;
    layout.marginWidth = 1;
    page.setLayout(layout);
    createEnvSection(page);
    createIncrementalSection(page);
    return page;
}

44. GrailsRefactoringPreferencesPage#createContents()

Project: grails-ide
File: GrailsRefactoringPreferencesPage.java
@Override
protected Control createContents(Composite _parent) {
    Composite parent = new Composite(_parent, SWT.NONE);
    GridLayout layout = new GridLayout(1, false);
    parent.setLayout(layout);
    warnNonGrailsAware = new Button(parent, SWT.CHECK);
    warnNonGrailsAware.setText("Warn about non-grails aware refactoring");
    warnNonGrailsAware.setToolTipText("Popup a warning dialog when a non-grails aware refactoring of Grails elements is detected.");
    warnNonGrailsAware.setSelection(GrailsRefactoringPreferences.getWarnNonGrailsAware());
    return parent;
}

45. GrailsExplorerPreferencesPage#createContents()

Project: grails-ide
File: GrailsExplorerPreferencesPage.java
@Override
protected Control createContents(Composite _parent) {
    Composite mainComposite = new Composite(_parent, SWT.NONE);
    GridLayout layout = new GridLayout(3, false);
    mainComposite.setLayout(layout);
    //		GridDataFactory grabAll = GridDataFactory.fillDefaults().grab(true, true);
    //		grabAll.applyTo(mainComposite);
    list = new ListDialogField(null, buttonLabels, tableLabelProvider);
    list.setUpButtonIndex(0);
    list.setDownButtonIndex(1);
    list.setLabelText("Order:");
    list.addElements(GrailsExplorerPlugin.getDefault().getPreferences().getOrderingConfig().asList());
    list.doFillIntoGrid(mainComposite, 3);
    //This must be placed *after* doFillIntoGrid
    list.getListControl(null).setToolTipText("Change the order in which elements appear in the Grails Project Explorer");
    GridDataFactory.fillDefaults().align(SWT.FILL, SWT.TOP).grab(true, false).applyTo(list.getListControl(null));
    return mainComposite;
}

46. SWTFactory#createComposite()

Project: goclipse
File: SWTFactory.java
/**
	 * Creates a Composite widget
	 * @param parent the parent composite to add this composite to
	 * @param font the font to set on the control
	 * @param style the style bits for the composite. See {@link Composite} for details on supported style bits
	 * @param columns the number of columns within the composite
	 * @param hspan the horizontal span the composite should take up on the parent
	 * @param fill the style for how this composite should fill into its parent
	 * @param marginwidth the width of the margin to place on the sides of the composite (default is 5, specified by GridLayout)
	 * @param marginheight the height of the margin to place o the top and bottom of the composite
	 * @return the new composite
	 * @since 3.6
	 */
public static Composite createComposite(Composite parent, Font font, int style, int columns, int hspan, int fill, int marginwidth, int marginheight) {
    Composite g = new Composite(parent, style);
    GridLayout layout = new GridLayout(columns, false);
    layout.marginWidth = marginwidth;
    layout.marginHeight = marginheight;
    g.setLayout(layout);
    g.setFont(font);
    GridData gd = new GridData(fill);
    gd.horizontalSpan = hspan;
    g.setLayoutData(gd);
    return g;
}

47. SWTFactory#createViewform()

Project: goclipse
File: SWTFactory.java
/**
	 * Creates a {@link ViewForm}
	 * @param parent
	 * @param style
	 * @param cols
	 * @param span
	 * @param fill
	 * @param marginwidth
	 * @param marginheight
	 * @return a new {@link ViewForm}
	 * @since 3.6
	 */
public static ViewForm createViewform(Composite parent, int style, int cols, int span, int fill, int marginwidth, int marginheight) {
    ViewForm form = new ViewForm(parent, style);
    form.setFont(parent.getFont());
    GridLayout layout = new GridLayout(cols, false);
    layout.marginWidth = marginwidth;
    layout.marginHeight = marginheight;
    form.setLayout(layout);
    GridData gd = new GridData(fill);
    gd.horizontalSpan = span;
    form.setLayoutData(gd);
    return form;
}

48. SWTFactory#createComposite()

Project: goclipse
File: SWTFactory.java
/**
	 * Creates a Composite widget
	 * @param parent the parent composite to add this composite to
	 * @param font the font to set on the control
	 * @param columns the number of columns within the composite
	 * @param hspan the horizontal span the composite should take up on the parent
	 * @param fill the style for how this composite should fill into its parent
	 * @param marginwidth the width of the margin to place on the sides of the composite (default is 5, specified by GridLayout)
	 * @param marginheight the height of the margin to place o the top and bottom of the composite
	 * @return the new composite
	 * @since 3.3
	 */
public static Composite createComposite(Composite parent, Font font, int columns, int hspan, int fill, int marginwidth, int marginheight) {
    Composite g = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout(columns, false);
    layout.marginWidth = marginwidth;
    layout.marginHeight = marginheight;
    g.setLayout(layout);
    g.setFont(font);
    GridData gd = new GridData(fill);
    gd.horizontalSpan = hspan;
    g.setLayoutData(gd);
    return g;
}

49. StatusMessageDialog#createDialogArea()

Project: goclipse
File: StatusMessageDialog.java
@Override
protected Control createDialogArea(Composite parent) {
    Composite composite = (Composite) super.createDialogArea(parent);
    createMessageArea(composite);
    GridLayout layout = new GridLayout();
    layout.marginHeight = 0;
    layout.marginWidth = 0;
    layout.verticalSpacing = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING);
    layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING) * 2;
    layout.numColumns = 2;
    composite.setLayout(layout);
    ignore = SWTFactory.createButton(parent, SWT.CHECK, ignoreButtonLabel, GridDataFactory.swtDefaults().span(2, 1).create());
    ignore.setSelection(true);
    return composite;
}

50. LangArgumentsTab#createControl()

Project: goclipse
File: LangArgumentsTab.java
@Override
public void createControl(Composite parent) {
    Composite comp = new Composite(parent, SWT.NONE);
    setControl(comp);
    GridLayout layout = new GridLayout(1, true);
    comp.setLayout(layout);
    comp.setFont(parent.getFont());
    GridData gd = new GridData(GridData.FILL_BOTH);
    comp.setLayoutData(gd);
    setHelpContextId();
    argumentsBlock.createComponent(comp, new GridData(GridData.FILL_BOTH));
    workingDirectoryBlock.createControl(comp);
}

51. NewGoWizardPage#createControl()

Project: goclipse
File: NewGoWizardPage.java
/**
	 * @see IDialogPage#createControl(Composite)
	 */
@Override
public void createControl(Composite parent) {
    Composite container = new Composite(parent, SWT.NULL);
    sourceFileComposite = new NewSourceFileComposite(container, SWT.NULL);
    sourceFileComposite.addDialogChangedListener(this);
    GridData gd = new GridData(GridData.FILL_HORIZONTAL);
    sourceFileComposite.setLayoutData(gd);
    GridLayout layout = new GridLayout();
    container.setLayout(layout);
    layout.numColumns = 1;
    layout.verticalSpacing = 9;
    initialize();
    dialogChanged();
    setControl(container);
}

52. GoSearchPage#createControl()

Project: goclipse
File: GoSearchPage.java
//---- Action Handling ------------------------------------------------
@Override
public void createControl(Composite parent) {
    initializeDialogUnits(parent);
    readConfiguration();
    Composite result = new Composite(parent, SWT.NONE);
    result.setFont(parent.getFont());
    GridLayout layout = new GridLayout(2, false);
    result.setLayout(layout);
    addTextPatternControls(result);
    setControl(result);
    Dialog.applyDialogFont(result);
}

53. AppraiseDiffViewerPart#createDiffViewers()

Project: git-appraise-eclipse
File: AppraiseDiffViewerPart.java
/**
   * Creates the controls to display diffs and returns the resulting composite.
   */
private Composite createDiffViewers(Composite parent, final FormToolkit toolkit, List<TaskAttribute> diffTaskAttributes) {
    Composite composite = toolkit.createComposite(parent);
    GridLayout contentLayout = new GridLayout();
    contentLayout.marginHeight = 0;
    contentLayout.marginWidth = 0;
    composite.setLayout(contentLayout);
    for (final TaskAttribute diffTaskAttribute : diffTaskAttributes) {
        createDiffViewer(toolkit, composite, diffTaskAttribute);
    }
    return composite;
}

54. EditCommentDialog#createDialogArea()

Project: git-appraise-eclipse
File: EditCommentDialog.java
@Override
protected Control createDialogArea(Composite parent) {
    Composite area = (Composite) super.createDialogArea(parent);
    Composite container = new Composite(area, SWT.NONE);
    container.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
    GridLayout layout = new GridLayout(2, false);
    container.setLayout(layout);
    if (mode == Mode.REPLY) {
        createReplyToAuthor(container);
        createReplyToText(container);
    }
    createCommentText(container);
    createResolvedWidget(container);
    commentText.setFocus();
    return area;
}

55. BannerPart#create()

Project: geronimo-devtools
File: BannerPart.java
private void create() {
    Section section = getSection();
    GridData gd = new GridData();
    gd.horizontalSpan = 2;
    section.setLayoutData(gd);
    section.setText("");
    Composite composite = toolkit.createComposite(section);
    GridLayout layout = new GridLayout();
    layout.numColumns = 1;
    layout.marginHeight = 1;
    layout.marginWidth = 1;
    layout.verticalSpacing = 5;
    layout.horizontalSpacing = 10;
    composite.setLayout(layout);
    composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
    section.setClient(composite);
    Label label = toolkit.createLabel(composite, "");
    label.setForeground(toolkit.getColors().getColor(FormColors.TITLE));
    label.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false));
    label.setImage(defaultImgDesc.createImage());
}

56. AbstractTableSection#createButtonComposite()

Project: geronimo-devtools
File: AbstractTableSection.java
protected Composite createButtonComposite(Composite parent) {
    Composite buttonComp = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.horizontalSpacing = 2;
    layout.verticalSpacing = 2;
    layout.marginWidth = 0;
    layout.marginHeight = 0;
    layout.numColumns = 1;
    buttonComp.setLayout(layout);
    buttonComp.setBackground(toolkit.getColors().getBackground());
    buttonComp.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false));
    return buttonComp;
}

57. GeronimoServerWizardFragment#createComposite()

Project: geronimo-devtools
File: GeronimoServerWizardFragment.java
public Composite createComposite(Composite parent, IWizardHandle handle) {
    Composite container = new Composite(parent, SWT.NONE);
    GridLayout grid = new GridLayout(2, false);
    grid.marginWidth = 0;
    container.setLayout(grid);
    container.setLayoutData(new GridData(GridData.FILL_BOTH));
    handle.setImageDescriptor(Activator.getImageDescriptor(Activator.IMG_WIZ_GERONIMO));
    handle.setTitle(Messages.bind(Messages.newServerWizardTitle, getServerName()));
    handle.setDescription(Messages.bind(Messages.newServerWizardTitle, getServerName()));
    createContent(container, handle);
    return container;
}

58. GeronimoRuntimeWizardFragment#createComposite()

Project: geronimo-devtools
File: GeronimoRuntimeWizardFragment.java
/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.wst.server.ui.wizard.WizardFragment#createComposite(org.eclipse.swt.widgets.Composite,
	 *      org.eclipse.wst.server.ui.wizard.IWizardHandle)
	 */
public Composite createComposite(Composite parent, IWizardHandle handle) {
    this.fWizard = handle;
    Composite container = new Composite(parent, SWT.NONE);
    GridLayout grid = new GridLayout(1, false);
    grid.marginWidth = 0;
    container.setLayout(grid);
    container.setLayoutData(new GridData(GridData.FILL_BOTH));
    handle.setImageDescriptor(Activator.getImageDescriptor((Activator.IMG_WIZ_GERONIMO)));
    handle.setTitle(Messages.bind(Messages.runtimeWizardTitle, getRuntimeName()));
    String version = getRuntimeDelegate().getRuntime().getRuntimeType().getVersion();
    handle.setDescription(Messages.bind(Messages.runtimeWizardDescription, version));
    createContent(container, handle);
    return container;
}

59. GeronimoRuntimeSourceWizardFragment#createComposite()

Project: geronimo-devtools
File: GeronimoRuntimeSourceWizardFragment.java
public Composite createComposite(Composite parent, IWizardHandle handle) {
    this.fWizard = handle;
    Composite container = new Composite(parent, SWT.NONE);
    GridLayout grid = new GridLayout(1, false);
    grid.marginWidth = 0;
    container.setLayout(grid);
    container.setLayoutData(new GridData(GridData.FILL_BOTH));
    handle.setImageDescriptor(Activator.getImageDescriptor((Activator.IMG_WIZ_GERONIMO)));
    handle.setTitle(Messages.sourceLocWizTitle);
    handle.setDescription(Messages.sourceLocWizDescription);
    createContent(container, handle);
    return container;
}

60. ConfirmInstallDialog#createDialogArea()

Project: geronimo-devtools
File: ConfirmInstallDialog.java
/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.jface.dialogs.Dialog#createDialogArea(org.eclipse.swt.widgets.Composite)
	 */
protected Control createDialogArea(Composite parent) {
    // create a composite with standard margins and spacing
    Composite composite = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.marginHeight = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN);
    layout.marginWidth = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_MARGIN);
    layout.verticalSpacing = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING);
    layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);
    composite.setLayout(layout);
    composite.setLayoutData(new GridData(GridData.FILL_BOTH));
    composite.setFont(parent.getFont());
    Label label = new Label(composite, SWT.WRAP);
    label.setText(NLS.bind(Messages.installMessage, new String[] { installPath }));
    GridData data = new GridData();
    data.widthHint = 400;
    label.setLayoutData(data);
    Dialog.applyDialogFont(composite);
    return composite;
}

61. NewMatchElementPage#createControl()

Project: forrest
File: NewMatchElementPage.java
/**
	 * @see IDialogPage#createControl(Composite)
	 */
public void createControl(Composite parent) {
    Composite container = new Composite(parent, SWT.NULL);
    GridLayout layout = new GridLayout();
    container.setLayout(layout);
    layout.numColumns = 2;
    layout.verticalSpacing = 9;
    Label label = new Label(container, SWT.NULL);
    label.setText("&Pattern:");
    patternText = new Text(container, SWT.BORDER | SWT.SINGLE);
    GridData gd = new GridData(GridData.FILL_HORIZONTAL);
    patternText.setLayoutData(gd);
    setControl(container);
}

62. NewLocationElementPage#createControl()

Project: forrest
File: NewLocationElementPage.java
/**
	 * @see IDialogPage#createControl(Composite)
	 */
public void createControl(Composite parent) {
    Composite container = new Composite(parent, SWT.NULL);
    GridLayout layout = new GridLayout();
    container.setLayout(layout);
    layout.numColumns = 2;
    layout.verticalSpacing = 9;
    Label label = new Label(container, SWT.NULL);
    label.setText("Location Source:");
    locationText = new Text(container, SWT.BORDER | SWT.SINGLE);
    GridData gd = new GridData(GridData.FILL_HORIZONTAL);
    locationText.setLayoutData(gd);
    setControl(container);
}

63. ServicabilityEditorSection#createSection()

Project: eclipse-integration-tcserver
File: ServicabilityEditorSection.java
@Override
public void createSection(Composite parent) {
    super.createSection(parent);
    FormToolkit toolkit = getFormToolkit(parent.getDisplay());
    Section section = toolkit.createSection(parent, ExpandableComposite.TWISTIE | ExpandableComposite.TITLE_BAR | Section.DESCRIPTION | ExpandableComposite.FOCUS_TITLE);
    section.setText("Servicability");
    section.setDescription("Specify settings for servicability.");
    section.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_FILL));
    Composite composite = toolkit.createComposite(section);
    GridLayout layout = new GridLayout(2, false);
    layout.marginHeight = 8;
    layout.marginWidth = 8;
    composite.setLayout(layout);
    toolkit.paintBordersFor(composite);
    section.setClient(composite);
    statusLabel = toolkit.createLabel(composite, "");
    GridDataFactory.fillDefaults().span(2, 1).applyTo(statusLabel);
    initialize();
}

64. WizardPageWithSections#createControl()

Project: eclipse-integration-gradle
File: WizardPageWithSections.java
/* (non-Javadoc)
	 * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
	 */
public void createControl(Composite parent) {
    Composite page = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout(1, false);
    layout.marginHeight = 1;
    layout.marginWidth = 1;
    page.setLayout(layout);
    validator = new CompositeValidator();
    for (PageSection section : getSections()) {
        section.createContents(page);
        validator.addChild(section.getValidator());
    }
    validator.addListener(this);
    setControl(page);
    getContainer().updateButtons();
    getContainer().updateMessage();
}

65. SampleProjectSection#createContents()

Project: eclipse-integration-gradle
File: SampleProjectSection.java
@Override
public void createContents(Composite page) {
    Composite group = new Composite(page, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.numColumns = 2;
    group.setLayout(layout);
    group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    Label projectLabel = new Label(group, SWT.NONE);
    projectLabel.setText("Sample project:");
    sampleProjectField = new Combo(group, SWT.DROP_DOWN | SWT.READ_ONLY);
    sampleProjectField.setItems(getSampleProjectNames());
    GridData data = new GridData(GridData.FILL_HORIZONTAL);
    data.widthHint = SIZING_TEXT_FIELD_WIDTH;
    sampleProjectField.setLayoutData(data);
    sampleProjectField.addModifyListener(new ModifyListener() {

        public void modifyText(ModifyEvent e) {
            sampleProjectExp.refresh();
        }
    });
    sampleProjectExp.refresh();
}

66. NewProjectNameSection#createContents()

Project: eclipse-integration-gradle
File: NewProjectNameSection.java
@Override
public void createContents(Composite page) {
    // project specification group
    Composite projectGroup = new Composite(page, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.numColumns = 2;
    projectGroup.setLayout(layout);
    projectGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    Label projectLabel = new Label(projectGroup, SWT.NONE);
    projectLabel.setText("Project name:");
    projectNameField = new Text(projectGroup, SWT.BORDER);
    GridData data = new GridData(GridData.FILL_HORIZONTAL);
    data.widthHint = SIZING_TEXT_FIELD_WIDTH;
    projectNameField.setLayoutData(data);
    projectNameField.addModifyListener(new ModifyListener() {

        public void modifyText(ModifyEvent e) {
            projectNameExp.refresh();
        }
    });
    projectNameExp.refresh();
}

67. GradleImportWizardPageOne#createControl()

Project: eclipse-integration-gradle
File: GradleImportWizardPageOne.java
public void createControl(Composite parent) {
    Composite page = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout(1, false);
    layout.marginHeight = 1;
    layout.marginWidth = 1;
    page.setLayout(layout);
    createRootFolderSection(page);
    createProjectSelectionGroup(page);
    createOptionsGroup(page);
    createWorkingSetGroup(page);
    setControl(page);
    checkPageComplete();
    checkRootFolder();
}

68. PreferencePageWithSections#createContents()

Project: eclipse-integration-gradle
File: PreferencePageWithSections.java
@Override
protected Control createContents(Composite parent) {
    Composite page = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout(1, false);
    layout.marginHeight = 1;
    layout.marginWidth = 1;
    page.setLayout(layout);
    CompositeValidator validator = new CompositeValidator();
    for (PrefsPageSection section : getSections()) {
        section.createContents(page);
        validator.addChild(section.getValidator());
    }
    validator.addListener(this);
    return page;
}

69. LaunchTabWithSections#createControl()

Project: eclipse-integration-gradle
File: LaunchTabWithSections.java
/**
	 * @see org.eclipse.debug.ui.ILaunchConfigurationTab#createControl(Composite)
	 */
public void createControl(Composite parent) {
    Composite page = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout(1, false);
    //        layout.marginHeight = 1;
    //        layout.marginWidth = 1;
    page.setLayout(layout);
    validator = new CompositeValidator();
    for (LaunchTabSection section : getSections()) {
        section.createControl(page);
        validator.addChild(section.getValidator());
    }
    validator.addListener(this);
    setControl(page);
}

70. HeaderPart#createControl()

Project: eclipse-integration-commons
File: HeaderPart.java
@Override
public void createControl(Composite parent, FormToolkit toolkit) {
    Composite composite = toolkit.createComposite(parent);
    GridLayout layout = new GridLayout(2, false);
    layout.horizontalSpacing = 10;
    layout.marginLeft = 0;
    layout.marginTop = 0;
    layout.marginRight = 10;
    layout.marginBottom = 0;
    composite.setLayout(layout);
    Label label = toolkit.createLabel(composite, text, SWT.WRAP);
    GridDataFactory.fillDefaults().grab(true, false).hint(300, SWT.DEFAULT).align(SWT.FILL, SWT.CENTER).applyTo(label);
    label = toolkit.createLabel(composite, null);
    label.setImage(IdeUiPlugin.getImage("prod/spring_logo_transparent.png"));
    setControl(composite);
}

71. ProjectAndPreferencePage#createContents()

Project: eclipse-integration-commons
File: ProjectAndPreferencePage.java
/*
	 * @see
	 * org.eclipse.jface.preference.IPreferencePage#createContents(Composite)
	 */
@Override
protected Control createContents(Composite parent) {
    Composite composite = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.marginHeight = 0;
    layout.marginWidth = 0;
    composite.setLayout(layout);
    composite.setFont(parent.getFont());
    GridData data = new GridData(GridData.FILL, GridData.FILL, true, true);
    fConfigurationBlockControl = createPreferenceContent(composite);
    fConfigurationBlockControl.setLayoutData(data);
    if (isProjectPreferencePage()) {
        boolean useProjectSettings = hasProjectSpecificOptions(getProject());
        enableProjectSpecificSettings(useProjectSettings);
    }
    Dialog.applyDialogFont(composite);
    return composite;
}

72. InfoFieldSection#createContents()

Project: eclipse-integration-commons
File: InfoFieldSection.java
@Override
public void createContents(Composite page) {
    Composite composite = new Composite(page, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.numColumns = 2;
    layout.marginWidth = 0;
    composite.setLayout(layout);
    composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    Label label = new Label(composite, SWT.NONE);
    label.setText(labelText);
    GridDataFactory.fillDefaults().hint(UIConstants.fieldLabelWidthHint(label), SWT.DEFAULT).align(SWT.BEGINNING, SWT.CENTER).applyTo(label);
    Label info = new Label(composite, SWT.NONE);
    info.setText(getInfoText());
    GridDataFactory.fillDefaults().grab(true, false).align(SWT.BEGINNING, SWT.BEGINNING).applyTo(info);
}

73. AbstractGenericWizardPage#createControl()

Project: eclipse-integration-commons
File: AbstractGenericWizardPage.java
public void createControl(Composite parent) {
    setTitle(getTitle());
    setMessage(getMessage());
    initializeDialogUnits(parent);
    Composite wizardArea = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout();
    wizardArea.setLayout(layout);
    createProjectSelectionArea(wizardArea);
    createPageArea(wizardArea);
    Dialog.applyDialogFont(wizardArea);
    setControl(wizardArea);
}

74. DerbyPropertiesPage#createContents()

Project: derby
File: DerbyPropertiesPage.java
protected Control createContents(Composite parent) {
    Composite composite = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout();
    composite.setLayout(layout);
    GridData data = new GridData(GridData.FILL);
    data.grabExcessHorizontalSpace = true;
    composite.setLayoutData(data);
    addControls(composite);
    IProject proj = (IProject) getElement();
    try {
        dsProps = new DerbyProperties(proj);
        fillControls();
    } catch (CoreException ce) {
        Logger.log(SelectionUtil.getStatusMessages(ce), IStatus.ERROR);
    }
    return composite;
}

75. DerbyPropertiesPage#createDefaultComposite()

Project: derby
File: DerbyPropertiesPage.java
protected Composite createDefaultComposite(Composite parent) {
    Composite composite = new Composite(parent, SWT.NULL);
    GridLayout layout = new GridLayout();
    layout.numColumns = 2;
    composite.setLayout(layout);
    GridData data = new GridData();
    data.verticalAlignment = GridData.FILL;
    data.horizontalAlignment = GridData.FILL;
    composite.setLayoutData(data);
    return composite;
}

76. AbstractAnalysisPage#createControl()

Project: depan
File: AbstractAnalysisPage.java
@Override
public void createControl(Composite parent) {
    Composite container = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout(1, true);
    layout.marginWidth = 0;
    layout.verticalSpacing = 9;
    container.setLayout(layout);
    IContainer outputContainer = WorkspaceTools.guessContainer(selection);
    String outputFilename = WorkspaceTools.guessNewFilename(outputContainer, defaultFilename, 1, 10);
    outputPart = new AnalysisOutputPart(this, outputContainer, outputFilename);
    Composite outputGroup = outputPart.createControl(container);
    outputGroup.setLayoutData(createHorzFillData());
    Composite sourceGroup = createSourceControl(container);
    sourceGroup.setLayoutData(createHorzFillData());
    updateStatus(getPageErrorMsg());
    setControl(container);
}

77. RefactorTool#setupComposite()

Project: depan
File: RefactorTool.java
@Override
public Control setupComposite(Composite parent) {
    Composite composite = new Composite(parent, SWT.NONE);
    chooser = new DoubleElementEditorChooser(composite, SWT.NONE);
    // layout
    GridLayout layout = new GridLayout(2, false);
    composite.setLayout(layout);
    chooser.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
    return composite;
}

78. CollapseTool#setupComposite()

Project: depan
File: CollapseTool.java
@Override
public Control setupComposite(Composite parent) {
    // first expand bar containing collapsing operations
    Composite topComposite = new Composite(parent, SWT.NONE);
    GridLayout topGrid = new GridLayout();
    topGrid.verticalSpacing = 9;
    topComposite.setLayout(topGrid);
    // Setup the collapse controls.
    TabFolder folder = createCollapseTabs(topComposite);
    folder.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
    Composite treeControl = nodeViewer.createNodeViewer(topComposite);
    treeControl.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
    return topComposite;
}

79. RelationSetEditorPart#setupCommandButtons()

Project: depan
File: RelationSetEditorPart.java
private Composite setupCommandButtons(Composite parent) {
    Composite result = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.marginWidth = 0;
    layout.marginHeight = 0;
    result.setLayout(layout);
    Composite pickerRegion = setupRelationSetSelector(result);
    pickerRegion.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
    Composite selectVis = setupSelectionVisible(result);
    selectVis.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
    Composite tableVis = setupTableVisible(result);
    tableVis.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
    return result;
}

80. RelationSetEditorPart#getControl()

Project: depan
File: RelationSetEditorPart.java
public Control getControl(Composite parent, RelationCheckedRepository visRepo) {
    this.shell = parent.getShell();
    Composite topLevel = new Composite(parent, SWT.NONE);
    GridLayout gridLayout = new GridLayout();
    gridLayout.verticalSpacing = 10;
    topLevel.setLayout(gridLayout);
    Composite commands = setupCommandButtons(topLevel);
    commands.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
    viewer = new RelationSetRelationTableEditor(visRepo);
    table = viewer.setupViewer(topLevel);
    table.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
    Composite saves = setupSaveButtons(topLevel);
    saves.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
    return topLevel;
}

81. RelationPropertyEditorPart#setupCommandButtons()

Project: depan
File: RelationPropertyEditorPart.java
private Composite setupCommandButtons(Composite parent) {
    Composite result = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.marginWidth = 0;
    layout.marginHeight = 0;
    result.setLayout(layout);
    Composite pickerRegion = setupRelationSetSelector(result);
    pickerRegion.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
    return result;
}

82. RelationPropertyEditorPart#getControl()

Project: depan
File: RelationPropertyEditorPart.java
public Control getControl(Composite parent, RelPropRepository propRepo) {
    this.shell = parent.getShell();
    Composite topLevel = new Composite(parent, SWT.NONE);
    GridLayout gridLayout = new GridLayout();
    gridLayout.verticalSpacing = 10;
    topLevel.setLayout(gridLayout);
    Composite commands = setupCommandButtons(topLevel);
    commands.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
    viewer = new RelationPropertyRelationTableEditor(propRepo);
    table = viewer.setupViewer(topLevel);
    table.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
    Composite saves = setupSaveButtons(topLevel);
    saves.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
    return topLevel;
}

83. ViewEditor#createDiagramPage()

Project: depan
File: ViewEditor.java
private void createDiagramPage() {
    Composite parent = new Composite(getContainer(), SWT.H_SCROLL | SWT.V_SCROLL);
    GridLayout pageLayout = new GridLayout();
    pageLayout.numColumns = 1;
    parent.setLayout(pageLayout);
    // bottom composite containing main diagram
    renderer = createView(parent);
    renderer.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
    // Configure the rendering pipe before listening for changes.
    prepareView();
    renderer.start();
    int index = addPage(parent);
    setPageText(index, "Graph View");
}

84. RemapOverview#createControl()

Project: depan
File: RemapOverview.java
/**
   * Create the GUI control.
   *
   * @param parent Composite parent.
   * @return the top level control.
   */
private Control createControl(Composite parent) {
    Composite topLevel = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout(1, true);
    layout.verticalSpacing = 12;
    topLevel.setLayout(layout);
    migrationTaskView = new MigrationTaskView(task, topLevel);
    Sasher sasher = new Sasher(topLevel, SWT.NONE);
    migrationGroupList = new MigrationGroupListViewer(sasher, this, task);
    remapTable = new RemapTable(sasher);
    sasher.init(migrationGroupList.getControl(), remapTable.getControl(), SWT.HORIZONTAL, 40);
    migrationTaskView.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
    sasher.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
    return topLevel;
}

85. UIUtils#createControlGroup()

Project: dbeaver
File: UIUtils.java
public static Group createControlGroup(Composite parent, String label, int columns, int layoutStyle, int widthHint) {
    Group group = new Group(parent, SWT.NONE);
    group.setText(label);
    GridData gd = new GridData(layoutStyle);
    if (widthHint > 0) {
        gd.widthHint = widthHint;
    }
    group.setLayoutData(gd);
    GridLayout gl = new GridLayout(columns, false);
    group.setLayout(gl);
    return group;
}

86. EnterNameDialog#createDialogArea()

Project: dbeaver
File: EnterNameDialog.java
@Override
protected Control createDialogArea(Composite parent) {
    getShell().setText(propertyName);
    Composite propGroup = new Composite(parent, SWT.NONE);
    GridLayout gl = new GridLayout(1, false);
    gl.marginHeight = 10;
    gl.marginWidth = 10;
    propGroup.setLayout(gl);
    GridData gd = new GridData(GridData.FILL_BOTH);
    propGroup.setLayoutData(gd);
    propNameText = UIUtils.createLabelText(propGroup, propertyName, null);
    if (propertyValue != null) {
        propNameText.setText(propertyValue);
        propNameText.selectAll();
    }
    return parent;
}

87. EmptyPreferencePage#createComposite()

Project: ccw
File: EmptyPreferencePage.java
private Composite createComposite(Composite parent, int numColumns) {
    noDefaultAndApplyButton();
    Composite composite = new Composite(parent, SWT.NULL);
    // GridLayout
    GridLayout layout = new GridLayout();
    layout.numColumns = numColumns;
    composite.setLayout(layout);
    // GridData
    GridData data = new GridData(GridData.FILL);
    data.horizontalIndent = 0;
    data.verticalAlignment = GridData.FILL;
    data.horizontalAlignment = GridData.FILL;
    composite.setLayoutData(data);
    return composite;
}

88. IndexDirectoryEditor#createEditor()

Project: carrot2
File: IndexDirectoryEditor.java
/*
     * 
     */
@Override
public void createEditor(Composite parent, int gridColumns) {
    final Composite holder = new Composite(parent, SWT.NONE);
    holder.setLayoutData(GUIFactory.editorGridData().grab(true, false).span(gridColumns, 1).create());
    GridLayout gl = GUIFactory.zeroMarginGridLayout();
    gl.numColumns = 2;
    gl.horizontalSpacing = 3;
    holder.setLayout(gl);
    createTextBox(holder);
    createFileButton(holder);
}

89. ResourceEditor#createEditor()

Project: carrot2
File: ResourceEditor.java
/*
     * 
     */
@Override
public void createEditor(Composite parent, int gridColumns) {
    final Composite holder = new Composite(parent, SWT.NONE);
    holder.setLayoutData(GUIFactory.editorGridData().grab(true, false).span(gridColumns, 1).create());
    GridLayout gl = GUIFactory.zeroMarginGridLayout();
    gl.numColumns = 4;
    gl.horizontalSpacing = 3;
    holder.setLayout(gl);
    createTextBox(holder);
    createFileButton(holder);
    createUrlButton(holder);
    createClearButton(holder);
}

90. DirectoryEditor#createEditor()

Project: carrot2
File: DirectoryEditor.java
/*
     * 
     */
@Override
public void createEditor(Composite parent, int gridColumns) {
    final Composite holder = new Composite(parent, SWT.NONE);
    holder.setLayoutData(GUIFactory.editorGridData().grab(true, false).span(gridColumns, 1).create());
    final GridLayout gl = GUIFactory.zeroMarginGridLayout();
    gl.numColumns = 3;
    gl.horizontalSpacing = 3;
    holder.setLayout(gl);
    createTextBox(holder);
    createFileButton(holder);
    createClearButton(holder);
}

91. WorkbenchPreferencesPage#createOptionGroup()

Project: carrot2
File: WorkbenchPreferencesPage.java
/*
     * Create option group.
     */
private Group createOptionGroup(Composite parent, String groupTitle) {
    final Group g = new Group(parent, SWT.LEFT);
    final GridLayout gl = new GridLayout(1, false);
    g.setLayout(gl);
    g.setText(groupTitle);
    g.setFont(parent.getFont());
    final GridData gd = new GridData(GridData.FILL_HORIZONTAL);
    g.setLayoutData(gd);
    return g;
}

92. GitRepoTemplatePreferencePage#createContents()

Project: bndtools
File: GitRepoTemplatePreferencePage.java
@Override
protected Control createContents(Composite parent) {
    Composite composite = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout(1, false);
    composite.setLayout(layout);
    Control groupGithub = githubReposPart.createControl(composite);
    groupGithub.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
    Control groupPlainGit = plainGitPart.createControl(composite);
    groupPlainGit.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
    return composite;
}

93. ProjectListControl#createControl()

Project: bndtools
File: ProjectListControl.java
public void createControl(final Composite parent) {
    createFilter(parent);
    GridLayout gridLayout = new GridLayout(1, false);
    gridLayout.marginWidth = 0;
    // Create the composite
    Composite composite = new Composite(parent, SWT.NONE);
    composite.setLayout(gridLayout);
    composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
    createTableLayout(composite);
    createLegend(composite);
}

94. ErrorList#addErrorItems()

Project: bndtools
File: ErrorList.java
private void addErrorItems() {
    Composite comp = new Composite(container, SWT.NONE);
    GridLayout gridLayout = new GridLayout();
    gridLayout.horizontalSpacing = 0;
    gridLayout.verticalSpacing = 0;
    gridLayout.marginWidth = 0;
    gridLayout.marginHeight = 0;
    comp.setLayout(gridLayout);
    comp.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true));
    for (Error error : errors) {
        ErrorItem errorItem = new ErrorItem(error);
        errorItem.createControl(comp);
    }
}

95. ErrorList#createControl()

Project: bndtools
File: ErrorList.java
public void createControl(Composite parent) {
    container = new Composite(parent, SWT.NONE);
    GridLayout gridLayout = new GridLayout();
    gridLayout.horizontalSpacing = 0;
    gridLayout.verticalSpacing = 0;
    gridLayout.marginWidth = 0;
    gridLayout.marginHeight = 0;
    container.setLayout(gridLayout);
    container.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true));
    addErrorItems();
}

96. WorkspaceMainPart#createMissingExtsWarningPanel()

Project: bndtools
File: WorkspaceMainPart.java
private void createMissingExtsWarningPanel(Composite parent, FormToolkit tk, IPath extPath) {
    Composite composite = tk.createComposite(parent);
    GridLayout layout = new GridLayout(2, false);
    layout.marginHeight = 0;
    layout.marginWidth = 0;
    composite.setLayout(layout);
    Label l1 = tk.createLabel(composite, "image");
    l1.setImage(warningImg);
    Label l2 = tk.createLabel(composite, String.format("No default configuration files found under %s", extPath));
    l2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
}

97. RunBundlesPart#createSection()

Project: bndtools
File: RunBundlesPart.java
@Override
void createSection(Section section, FormToolkit toolkit) {
    section.setText(Messages.RunBundlesPart_title);
    FormText description = new FormText(section, SWT.READ_ONLY | SWT.WRAP);
    description.setText(Messages.RunBundlesPart_description, true, false);
    section.setDescriptionControl(description);
    super.createSection(section, toolkit);
    Composite composite = (Composite) section.getClient();
    GridLayout layout = (GridLayout) composite.getLayout();
    layout.marginRight = 10;
}

98. IncludedResourcesPart#createSection()

Project: bndtools
File: IncludedResourcesPart.java
void createSection(Section section, FormToolkit toolkit) {
    section.setText("Import Patterns");
    section.setDescription("Resources matching the listed patterns will be included in the bundle.");
    Composite composite = toolkit.createComposite(section);
    section.setClient(composite);
    table = toolkit.createTable(composite, SWT.FULL_SELECTION | SWT.MULTI);
    // Layout
    GridLayout layout = new GridLayout(2, false);
    composite.setLayout(layout);
    GridData gd;
    gd = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 3);
    gd.widthHint = 300;
    gd.heightHint = 100;
    table.setLayoutData(gd);
}

99. WAEnvVarDialog#createContents()

Project: azure-tools-for-java
File: WAEnvVarDialog.java
protected Control createContents(Composite parent) {
    Composite container = new Composite(parent, SWT.NONE);
    GridLayout gridLayout = new GridLayout(2, false);
    container.setLayout(gridLayout);
    GridData gridData = new GridData();
    gridData.widthHint = 400;
    container.setLayoutData(gridData);
    createNameComponent(container);
    createValueComponent(container);
    if (isEditVariable) {
        // populate the environment variable name and it's value
        // in case of this dialog is opened for editing the variable.
        populateData();
    }
    return super.createContents(parent);
}

100. ImportExportDialog#createDeployGrp()

Project: azure-tools-for-java
File: ImportExportDialog.java
/**
	 * Creates the deploy group.
	 * @param parent Parent container
	 */
private void createDeployGrp(Composite parent) {
    Group deployGrp = new Group(parent, SWT.SHADOW_ETCHED_IN);
    GridLayout groupGridLayout = new GridLayout();
    GridData groupGridData = new GridData();
    groupGridData.grabExcessHorizontalSpace = true;
    groupGridData.horizontalAlignment = SWT.FILL;
    groupGridData.horizontalIndent = 10;
    groupGridData.verticalIndent = 10;
    groupGridLayout.numColumns = 2;
    groupGridLayout.verticalSpacing = 10;
    deployGrp.setText(Messages.dlgImpDplGrp);
    deployGrp.setLayout(groupGridLayout);
    deployGrp.setLayoutData(groupGridData);
    createDplMethodComponent(deployGrp);
    createToDirComponent(deployGrp);
    createNoteLabel(deployGrp);
}