org.eclipse.swt.widgets.Composite

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

1. RelationSetEditorPart#setupCommandButtons()

Project: depan
Source File: RelationSetEditorPart.java
View license
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;
}

2. RelationPropertyEditorPart#getControl()

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

3. RelationSetEditorPart#getControl()

Project: depan
Source File: RelationSetEditorPart.java
View license
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;
}

4. AbstractAnalysisPage#createControl()

Project: depan
Source File: AbstractAnalysisPage.java
View license
@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);
}

5. GeneralPreferencePage#createContents()

Project: idecore
Source File: GeneralPreferencePage.java
View license
@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;
}

6. KarafFeaturesFormPage#createFormContent()

View license
@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);
}

7. SelectExistingOrCreateNewDialog#createTreeViewer()

View license
/* (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;
}

8. CreateEntityDialog#createDialogArea()

Project: dbeaver
Source File: CreateEntityDialog.java
View license
@Override
protected Control createDialogArea(Composite parent) {
    getShell().setText(CoreMessages.dialog_struct_create_entity_title + entityType);
    Composite group = (Composite) super.createDialogArea(parent);
    GridData gd = new GridData(GridData.FILL_BOTH);
    group.setLayoutData(gd);
    Composite propsGroup = new Composite(group, SWT.NONE);
    propsGroup.setLayout(new GridLayout(2, false));
    gd = new GridData(GridData.FILL_HORIZONTAL);
    propsGroup.setLayoutData(gd);
    //$NON-NLS-2$
    final Text nameText = UIUtils.createLabelText(propsGroup, CoreMessages.dialog_struct_create_entity_group_name, null);
    nameText.addModifyListener(new ModifyListener() {

        @Override
        public void modifyText(ModifyEvent e) {
            name = nameText.getText();
        }
    });
    return group;
}

9. GraphNodeViewer#createNodeViewer()

Project: depan
Source File: GraphNodeViewer.java
View license
public Composite createNodeViewer(Composite parent) {
    Composite result = new Composite(parent, SWT.NONE);
    result.setLayout(new GridLayout(1, false));
    Composite optionsSection = new Composite(result, SWT.NONE);
    optionsSection.setLayout(new GridLayout(1, false));
    optionsSection.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
    ToolBar rightOptions = createToolBar(optionsSection);
    rightOptions.setLayoutData(new GridData(SWT.END, SWT.FILL, true, false));
    treeViewer = createTreeViewer(result);
    treeViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
    return result;
}

10. SootConfigManagerDialog#createSpecialButtonBar()

Project: JAADAS
Source File: SootConfigManagerDialog.java
View license
/*
	 * @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;
}

11. DiskUsageView#initialLayout()

Project: scouter
Source File: DiskUsageView.java
View license
private void initialLayout(Composite parent) {
    Composite composite = new Composite(parent, SWT.NONE);
    composite.setLayout(new GridLayout(1, true));
    Composite tableComposite = new Composite(composite, SWT.NONE);
    tableComposite.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true));
    tableComposite.setLayout(new GridLayout(1, true));
    createTableViewer(tableComposite);
    IToolBarManager man = getViewSite().getActionBars().getToolBarManager();
    man.add(new Action("Reload", ImageUtil.getImageDescriptor(Images.refresh)) {

        public void run() {
            load();
        }
    });
}

12. NetStatView#initialLayout()

Project: scouter
Source File: NetStatView.java
View license
private void initialLayout(Composite parent) {
    Composite composite = new Composite(parent, SWT.NONE);
    composite.setLayout(new GridLayout(1, true));
    Composite tableComposite = new Composite(composite, SWT.NONE);
    tableComposite.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true));
    tableComposite.setLayout(new GridLayout(1, true));
    createTableViewer(tableComposite);
    IToolBarManager man = getViewSite().getActionBars().getToolBarManager();
    man.add(new Action("Reload", ImageUtil.getImageDescriptor(Images.refresh)) {

        public void run() {
            load();
        }
    });
}

13. TopView#initialLayout()

Project: scouter
Source File: TopView.java
View license
private void initialLayout(Composite parent) {
    Composite composite = new Composite(parent, SWT.NONE);
    composite.setLayout(new GridLayout(1, true));
    Composite tableComposite = new Composite(composite, SWT.NONE);
    tableComposite.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true));
    tableComposite.setLayout(new GridLayout(1, true));
    createTableViewer(tableComposite);
    IToolBarManager man = getViewSite().getActionBars().getToolBarManager();
    man.add(new Action("Reload", ImageUtil.getImageDescriptor(Images.refresh)) {

        public void run() {
            load();
        }
    });
}

14. WhoView#initialLayout()

Project: scouter
Source File: WhoView.java
View license
private void initialLayout(Composite parent) {
    Composite composite = new Composite(parent, SWT.NONE);
    composite.setLayout(new GridLayout(1, true));
    Composite tableComposite = new Composite(composite, SWT.NONE);
    tableComposite.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true));
    tableComposite.setLayout(new GridLayout(1, true));
    createTableViewer(tableComposite);
    IToolBarManager man = getViewSite().getActionBars().getToolBarManager();
    man.add(new Action("Reload", ImageUtil.getImageDescriptor(Images.refresh)) {

        public void run() {
            load();
        }
    });
}

15. ObjectActiveServiceListView#initialLayout()

View license
private void initialLayout(Composite parent) {
    Composite composite = new Composite(parent, SWT.NONE);
    composite.setLayout(new GridLayout(1, true));
    errorLbl = new Label(composite, SWT.NONE);
    errorLbl.setForeground(ColorUtil.getInstance().getColor(SWT.COLOR_RED));
    GridData gr = new GridData(SWT.FILL, SWT.FILL, true, false);
    gr.exclude = true;
    errorLbl.setLayoutData(gr);
    errorLbl.setVisible(false);
    Composite tableComposite = new Composite(composite, SWT.NONE);
    tableComposite.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true));
    tableComposite.setLayout(new GridLayout(1, true));
    createTableViewer(tableComposite);
}

16. ServerStatusView#createPartControl()

Project: scouter
Source File: ServerStatusView.java
View license
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);
}

17. HeaderPage#setup1ColumnLayout()

Project: uima-uimaj
Source File: HeaderPage.java
View license
public Composite setup1ColumnLayout(IManagedForm managedForm) {
    final ScrolledForm sform = managedForm.getForm();
    final Composite form = sform.getBody();
    // this is required !
    form.setLayout(new GridLayout(1, false));
    Composite xtra = toolkit.createComposite(form);
    xtra.setLayout(new GridLayout(1, false));
    xtra.setLayoutData(new GridData(GridData.FILL_BOTH));
    Control c = form.getParent();
    while (!(c instanceof ScrolledComposite)) c = c.getParent();
    ((GridData) xtra.getLayoutData()).widthHint = c.getSize().x;
    return xtra;
}

18. MainTab#createControl()

Project: angularjs-eclipse
Source File: MainTab.java
View license
/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.eclipse.debug.ui.ILaunchConfigurationTab#createControl(org.eclipse.
	 * swt.widgets.Composite)
	 */
@Override
public void createControl(Composite parent) {
    Composite mainComposite = new Composite(parent, SWT.NONE);
    setControl(mainComposite);
    GridLayout layout = new GridLayout();
    layout.numColumns = 1;
    GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
    mainComposite.setLayout(layout);
    mainComposite.setLayoutData(gridData);
    mainComposite.setFont(parent.getFont());
    createLocationComponent(mainComposite);
    createWorkDirectoryComponent(mainComposite);
    createArgumentComponent(mainComposite);
    createVerticalSpacer(mainComposite, 2);
    Dialog.applyDialogFont(parent);
}

19. RelationPropertyEditorPart#setupCommandButtons()

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

20. CollapseTool#setupComposite()

Project: depan
Source File: CollapseTool.java
View license
@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;
}

21. ConfirmInstallDialog#createDialogArea()

View license
/*
	 * (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;
}

22. AbstractTableSection#createButtonComposite()

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

23. EditCommentDialog#createDialogArea()

View license
@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;
}

24. LangArgumentsTab#createControl()

Project: goclipse
Source File: LangArgumentsTab.java
View license
@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);
}

25. SWTFactory#createComposite()

Project: goclipse
Source File: SWTFactory.java
View license
/**
	 * 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;
}

26. SWTFactory#createComposite()

Project: goclipse
Source File: SWTFactory.java
View license
/**
	 * 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;
}

27. NewGrailsProjectWizardPageOne#createControl()

View license
/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
	 */
public void createControl(Composite parent) {
    initializeDialogUnits(parent);
    final Composite composite = new Composite(parent, SWT.NULL);
    composite.setFont(parent.getFont());
    composite.setLayout(initGridLayout(new GridLayout(1, false), true));
    composite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
    // create UI elements
    Control nameControl = createNameControl(composite);
    nameControl.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    Control grailsHomeControl = grailsInstallGroup.createControl(composite);
    grailsHomeControl.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    Control locationControl = createLocationControl(composite);
    locationControl.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    Control workingSetControl = createWorkingSetControl(composite);
    workingSetControl.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    setControl(composite);
}

28. ExpandedContentManagerTest#testShowTransformationBrowserh()

View license
@Test
public void testShowTransformationBrowserh() {
    TransGraph transGraphMock = mock(TransGraph.class);
    Control control1 = mock(Control.class);
    Control control2 = mock(Control.class);
    Browser browser = mock(Browser.class);
    SashForm sash = mock(SashForm.class);
    when(sash.getWeights()).thenReturn(new int[] { 277, 722 });
    Composite comp1 = mock(Composite.class);
    Composite comp2 = mock(Composite.class);
    Composite comp3 = mock(Composite.class);
    Composite comp4 = mock(Composite.class);
    when(browser.getParent()).thenReturn(comp1);
    when(comp1.getParent()).thenReturn(comp2);
    when(comp2.getParent()).thenReturn(comp3);
    when(comp3.getParent()).thenReturn(sash);
    when(comp4.getParent()).thenReturn(sash);
    Control[] children = new Control[] { control1, control2, browser };
    when(transGraphMock.getChildren()).thenReturn(children);
    ExpandedContentManager.createExpandedContent(transGraphMock, "");
}

29. ShowProcessOutputDialog#createDialogArea()

Project: Pydev
Source File: ShowProcessOutputDialog.java
View license
/**
     * Create the dialog contents
     */
@Override
protected Control createDialogArea(Composite parent) {
    Composite top = (Composite) super.createDialogArea(parent);
    Composite composite = new Composite(top, SWT.None);
    composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
    composite.setLayout(new GridLayout(NUMBER_OF_COLUMNS, false));
    //--- main output
    output = new Text(composite, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL | SWT.WRAP | SWT.READ_ONLY);
    GridData gridData = new GridData(GridData.FILL_BOTH);
    gridData.horizontalSpan = NUMBER_OF_COLUMNS;
    gridData.grabExcessHorizontalSpace = true;
    gridData.grabExcessVerticalSpace = true;
    output.setLayoutData(gridData);
    return top;
}

30. KeyAssistDialog#createDialogArea()

Project: Pydev
Source File: KeyAssistDialog.java
View license
/**
     * 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;
}

31. WorkingDirectoryBlock#createComposite()

Project: Pydev
Source File: WorkingDirectoryBlock.java
View license
/**
     * 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;
}

32. ErrorWizardPage#createControl()

Project: Pydev
Source File: ErrorWizardPage.java
View license
@Override
public void createControl(Composite parent) {
    Composite composite = new Composite(parent, SWT.NULL);
    composite.setLayout(new GridLayout());
    composite.setLayoutData(new GridData(GridData.FILL_BOTH));
    composite.setFont(parent.getFont());
    Label label = new Label(composite, SWT.NONE);
    label.setFont(parent.getFont());
    label.setText(msg);
    setErrorMessage("Unexpected error.");
    setControl(composite);
}

33. StartupProgressDialog#createContents()

Project: RSSOwl
Source File: StartupProgressDialog.java
View license
/*
   * @see org.eclipse.jface.dialogs.IconAndMessageDialog#createContents(org.eclipse.swt.widgets.Composite)
   */
@Override
protected Control createContents(Composite parent) {
    initializeDialogUnits(parent);
    parent.setLayout(LayoutUtils.createGridLayout(1, 0, 0, 0, 0, false));
    GridDataFactory.fillDefaults().grab(true, true).applyTo(parent);
    /* Title Area */
    Composite titleArea = new Composite(parent, SWT.None);
    titleArea.setLayout(LayoutUtils.createGridLayout(2, 0, 0, 0, 0, false));
    titleArea.setBackground(JFaceColors.getBannerBackground(parent.getDisplay()));
    GridDataFactory.fillDefaults().grab(true, true).applyTo(titleArea);
    createTitleArea(titleArea);
    /* Content Area */
    Composite contentArea = new Composite(parent, SWT.NONE);
    Point defaultSpacing = LayoutConstants.getSpacing();
    GridLayoutFactory.fillDefaults().margins(LayoutConstants.getMargins()).spacing(defaultSpacing.x * 2, defaultSpacing.y).numColumns(2).applyTo(contentArea);
    GridDataFactory.fillDefaults().grab(true, true).applyTo(contentArea);
    createDialogAndButtonArea(contentArea);
    return parent;
}

34. TutorialPage#createFinishPage()

Project: RSSOwl
Source File: TutorialPage.java
View license
private void createFinishPage(Composite container) {
    StyledText text = createStyledText(container, false);
    applyRichText(Messages.TutorialPage_FINISH_TEXT, text);
    Composite linkContainer = new Composite(container, SWT.NONE);
    linkContainer.setLayout(LayoutUtils.createGridLayout(1, 0, 0));
    linkContainer.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false));
    linkContainer.setBackground(container.getBackground());
    /* Further Links */
    //$NON-NLS-1$
    createHyperLink(linkContainer, Messages.TutorialPage_FAQ, "http://www.rssowl.org/help");
    //$NON-NLS-1$
    createHyperLink(linkContainer, Messages.TutorialPage_FORUMS, "http://sourceforge.net/projects/rssowl/forums");
    //$NON-NLS-1$
    createHyperLink(linkContainer, Messages.TutorialPage_REPORT_BUGS, "http://dev.rssowl.org");
    //$NON-NLS-1$
    createHyperLink(linkContainer, Messages.TutorialPage_CONTACT, "http://www.rssowl.org/contact");
    //$NON-NLS-1$
    createHyperLink(linkContainer, Messages.TutorialPage_WEBSITE, "http://www.rssowl.org");
}

35. NewsBrowserControl#createPart()

Project: RSSOwl
Source File: NewsBrowserControl.java
View license
/*
   * @see org.rssowl.ui.internal.editors.feed.IFeedViewPart#createPart(org.eclipse.swt.widgets.Composite)
   */
public void createPart(Composite parent) {
    Composite container = new Composite(parent, SWT.None);
    container.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
    container.setLayout(LayoutUtils.createGridLayout(1, 0, 0, 0, 0, false));
    container.setBackground(parent.getBackground());
    /* Info Bar to indicate new incoming news when in news paper view */
    createInfoBar(container);
    setInfoBarVisible(false, false);
    /* Browser Viewer for News */
    fViewer = new NewsBrowserViewer(container, SWT.NONE, fFeedViewSite) {

        @Override
        protected void onRefresh() {
            setInfoBarVisible(false);
        }
    };
    fViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
}

36. RemoveAnnotationDialog#createDialogArea()

Project: scouter
Source File: RemoveAnnotationDialog.java
View license
@Override
protected Control createDialogArea(Composite parent) {
    final Composite parent_composite = (Composite) super.createDialogArea(parent);
    final Composite composite = new Composite(parent_composite, SWT.NONE);
    composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
    composite.setLayout(new GridLayout(1, false));
    final Label removeLabel = new Label(composite, SWT.None);
    removeLabel.setLayoutData(new GridData());
    if (xyGraph.getPlotArea().getAnnotationList().size() > 0) {
        removeLabel.setText("Select the annotation to be removed: ");
        annotationsCombo = new Combo(composite, SWT.DROP_DOWN);
        annotationsCombo.setLayoutData(new GridData(SWT.FILL, 0, true, false));
        for (Annotation annotation : xyGraph.getPlotArea().getAnnotationList()) annotationsCombo.add(annotation.getName());
        annotationsCombo.select(0);
    } else {
        removeLabel.setText("There is no annotation on the graph.");
    }
    return parent_composite;
}

37. AngularGlobalPreferencesPage#createComposite()

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

38. HTMLAngularEditorPreferencesPage#createComposite()

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

39. HTMLAngularEditorSyntaxColoringPreferencePage#createComposite()

View license
/**
	 * Creates composite control and sets the default layout data.
	 */
private Composite createComposite(Composite parent, int numColumns) {
    Composite composite = new Composite(parent, SWT.NULL);
    // GridLayout
    GridLayout layout = new GridLayout();
    layout.numColumns = numColumns;
    layout.makeColumnsEqualWidth = false;
    layout.marginHeight = 0;
    layout.marginWidth = 0;
    composite.setLayout(layout);
    // GridData
    GridData data = new GridData(SWT.FILL, SWT.FILL, true, false);
    composite.setLayoutData(data);
    return composite;
}

40. HTMLAngularGlobalPreferencesPage#createComposite()

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

41. AppspecTemplateSelectionPage#createControl()

View license
public void createControl(Composite parent) {
    Composite composite = new Composite(parent, SWT.NONE);
    composite.setLayout(new GridLayout(3, false));
    List<AppspecTemplateMetadataModel> allModels = AppspecTemplateRegistry.getInstance().getDefaultTemplates();
    allModels.addAll(AppspecTemplateRegistry.getInstance().getCustomTemplates());
    createAppspecTemplateSelection(composite, allModels);
    stackArea = new Composite(composite, SWT.NONE);
    GridData stackAreaLayoutData = new GridData(SWT.FILL, SWT.FILL, true, true);
    stackAreaLayoutData.horizontalSpan = 3;
    stackArea.setLayoutData(stackAreaLayoutData);
    stackArea.setLayout(new StackLayout());
    createStackedTemplateConfigComposites(stackArea, allModels);
    AppspecTemplateMetadataModel initSelection = allModels.get(0);
    appspecTemplateSelectionCombo.setSelection(new StructuredSelection(initSelection), true);
    setControl(composite);
    setPageComplete(true);
}

42. ToolkitAnalyticsPreferencePage#createContents()

View license
@Override
protected Control createContents(Composite parent) {
    Composite composite = new Composite(parent, SWT.LEFT);
    GridLayout layout = new GridLayout();
    layout.marginWidth = 10;
    layout.marginHeight = 8;
    composite.setLayout(layout);
    GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
    gridData.widthHint = 300;
    composite.setLayoutData(gridData);
    analyticsEnabledButton = new Button(composite, SWT.CHECK | SWT.MULTI | SWT.WRAP);
    analyticsEnabledButton.setText("By leaving this box checked, you agree that AWS may anonymously " + "collect analytics about your usage of AWS Toolkit. AWS will handle " + "all information received in accordance with the AWS Privacy Policy " + "(http://aws.amazon.com/privacy/)");
    analyticsEnabledButton.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
    analyticsEnabledButton.setSelection(getPreferenceStore().getBoolean(PreferenceConstants.P_TOOLKIT_ANALYTICS_COLLECTION_ENABLED));
    return composite;
}

43. AwsAccountPreferencePage#createContents()

View license
/*
     * (non-Javadoc)
     *
     * @see
     * org.eclipse.jface.preference.PreferencePage#createContents(org.eclipse
     * .swt.widgets.Composite)
     */
@Override
protected Control createContents(Composite parent) {
    Composite composite = new Composite(parent, SWT.NONE);
    composite.setLayout(new GridLayout());
    GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, true);
    gridData.widthHint = PREFERRED_PAGE_WIDTH;
    composite.setLayoutData(gridData);
    // Accounts section
    createAccountsSectionGroup(composite);
    // Credentials file location section
    createCredentialsFileGroup(composite);
    // Timeouts section
    createTimeoutSectionGroup(composite);
    // The weblinks at the bottom part of the page
    createFeedbackSection(composite);
    parent.pack();
    return composite;
}

44. AwsAccountPreferencePageTab#createAccountInfoSection()

View license
/**
     * Creates the whole section of account info
     */
private Composite createAccountInfoSection(Composite parent) {
    Composite accountInfoSection = new Composite(parent, SWT.NONE);
    accountInfoSection.setLayout(new GridLayout());
    GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, true);
    gridData.horizontalSpan = 3;
    accountInfoSection.setLayoutData(gridData);
    createAccountSelector(accountInfoSection);
    WebLinkListener webLinkListener = new WebLinkListener();
    Group awsGroup = createAccountDetailSectionGroup(accountInfoSection, webLinkListener);
    createOptionalSection(awsGroup, webLinkListener);
    return accountInfoSection;
}

45. RegionsPreferencePage#createContents()

View license
/* (non-Javadoc)
     * @see org.eclipse.jface.preference.PreferencePage#createContents(org.eclipse.swt.widgets.Composite)
     */
@Override
protected Control createContents(Composite parent) {
    Composite composite = new Composite(parent, SWT.LEFT);
    composite.setLayout(new GridLayout());
    composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    WebLinkListener webLinkListener = new WebLinkListener();
    createRegionSection(composite, webLinkListener);
    createSpacer(composite);
    return composite;
}

46. AbstractDistributionEditor#createVerticalSpacer()

View license
protected Composite createVerticalSpacer(Composite parent) {
    Composite spacer = new Composite(parent, SWT.NONE);
    GridData data = new GridData(SWT.FILL, SWT.TOP, false, false);
    spacer.setSize(SWT.DEFAULT, 5);
    data.horizontalSpan = 2;
    data.widthHint = 5;
    data.heightHint = 5;
    spacer.setLayoutData(data);
    return spacer;
}

47. CreateTopicDialog#createCustomArea()

View license
@Override
protected Control createCustomArea(Composite parent) {
    Composite composite = new Composite(parent, SWT.NONE);
    composite.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false));
    composite.setLayout(new GridLayout(2, false));
    new Label(composite, SWT.NONE).setText("Topic Name:");
    final Text topicNameText = new Text(composite, SWT.BORDER);
    topicNameText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
    topicNameText.addModifyListener(new ModifyListener() {

        public void modifyText(ModifyEvent e) {
            topicName = topicNameText.getText();
            updateControls();
        }
    });
    return composite;
}

48. TestToolVersionTable#createToolbar()

View license
/**
     * Create the toolbar, with install and uninstall buttons and an initially
     * hidden progress bar to track install status.
     */
private void createToolbar() {
    // Bind to the top of wherever we end up.
    Composite wrapper = new Composite(this, SWT.NONE);
    wrapper.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false));
    wrapper.setLayout(new GridLayout(2, false));
    toolbar = new CustomToolBarManager();
    // Toolbar on the left.
    Control control = toolbar.createControl(wrapper);
    control.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false));
    // Progress bar on the right.
    ProgressBar progressBar = new ProgressBar(wrapper, SWT.NONE);
    progressBar.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false));
    progressBar.setVisible(false);
    progressMonitor = new CustomProgressMonitor(progressBar);
}

49. KeyPairsPreferencePage#createContents()

View license
/* (non-Javadoc)
     * @see org.eclipse.jface.preference.PreferencePage#createContents(org.eclipse.swt.widgets.Composite)
     */
@Override
protected Control createContents(Composite parent) {
    Composite composite = new Composite(parent, SWT.NONE);
    composite.setLayout(new GridLayout());
    composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    Group group = newGroup("Key Pairs:", composite);
    newLabel("Key pairs allow you to securely log into your EC2 instances.", group);
    KeyPairComposite keyPairSelectionTable = new KeyPairComposite(group);
    GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
    gridData.heightHint = 150;
    keyPairSelectionTable.setLayoutData(gridData);
    return composite;
}

50. AmiSelectionWizardPage#createControl()

View license
/* (non-Javadoc)
     * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
     */
public void createControl(Composite parent) {
    Composite control = new Composite(parent, SWT.NONE);
    control.setLayout(new GridLayout(1, false));
    control.setLayoutData(new GridData(GridData.FILL_BOTH));
    ToolBarManager manager = new ToolBarManager(SWT.None);
    amiSelectionComposite = new FilteredAmiSelectionTable(control, manager, 3);
    amiSelectionComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
    amiSelectionComposite.addSelectionListener(new SelectionAdapter() {

        @Override
        public void widgetSelected(SelectionEvent e) {
            updateErrorMessages();
            getContainer().updateButtons();
        }
    });
    manager.add(amiSelectionComposite.getAmiSelectionTable().getRefreshAction());
    manager.add(amiSelectionComposite.getAmiSelectionTable().getAmiFilterDropDownAction());
    manager.add(amiSelectionComposite.getAmiSelectionTable().getPlatformFilterDropDownAction());
    manager.update(true);
    updateErrorMessages();
    this.setControl(control);
}

51. CreateSecurityGroupDialog#createComposite()

View license
private Composite createComposite(Composite parent) {
    Composite composite = new Composite(parent, SWT.BORDER);
    GridLayout gridLayout = new GridLayout(2, false);
    gridLayout.marginHeight = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN);
    gridLayout.marginWidth = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_MARGIN);
    gridLayout.verticalSpacing = convertVerticalDLUsToPixels(1);
    gridLayout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);
    composite.setLayout(gridLayout);
    composite.setLayoutData(new GridData(GridData.FILL_BOTH));
    return composite;
}

52. EditSecurityGroupPermissionEntryDialog#createComposite()

View license
private Composite createComposite(Composite parent) {
    Composite composite = new Composite(parent, SWT.BORDER);
    GridLayout gridLayout = new GridLayout(2, false);
    gridLayout.marginHeight = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN);
    gridLayout.marginWidth = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_MARGIN);
    gridLayout.verticalSpacing = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING);
    gridLayout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);
    gridLayout.marginHeight = 2;
    composite.setLayout(gridLayout);
    composite.setLayoutData(new GridData(GridData.FILL_BOTH));
    return composite;
}

53. ShellCommandErrorDialog#createCustomArea()

View license
/* (non-Javadoc)
	 * @see org.eclipse.jface.dialogs.MessageDialog#createCustomArea(org.eclipse.swt.widgets.Composite)
	 */
@Override
protected Control createCustomArea(Composite parent) {
    Composite composite = new Composite(parent, SWT.NONE);
    composite.setLayoutData(new GridData(GridData.FILL_BOTH));
    composite.setLayout(new GridLayout(1, false));
    if (sce.getNumberOfAttempts() > 1) {
        createAttemptSelectionArea(composite);
        attemptRadioButtons.get(0).setSelection(true);
    }
    createCommandOutputArea(composite);
    createHelpLinkArea(composite);
    update();
    return composite;
}

54. ShellCommandErrorDialog#createCommandOutputArea()

View license
/**
	 * Creates a new UI section displaying the details of the selected attempt
	 * to execute a command.
	 * 
	 * @param composite
	 *            The parent composite for this new section.
	 */
private void createCommandOutputArea(Composite composite) {
    Composite outputComposite = new Composite(composite, SWT.NONE);
    outputComposite.setLayout(new GridLayout(1, false));
    outputComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
    Group outputGroup = new Group(outputComposite, SWT.None);
    outputGroup.setLayoutData(new GridData(GridData.FILL_BOTH));
    outputGroup.setLayout(new GridLayout(2, false));
    outputGroup.setText("Command Output:");
    newLabel(outputGroup, "Output:");
    outputText = newText(outputGroup, "");
    newLabel(outputGroup, "Errors:");
    errorOutputText = newText(outputGroup, "");
}

55. DeviceDialog#createCustomArea()

View license
/* (non-Javadoc)
	 * @see org.eclipse.jface.dialogs.MessageDialog#createCustomArea(org.eclipse.swt.widgets.Composite)
	 */
@Override
protected Control createCustomArea(Composite parent) {
    Composite composite = new Composite(parent, SWT.NONE);
    composite.setLayoutData(new GridData(GridData.FILL_BOTH));
    composite.setLayout(new GridLayout(2, false));
    Label label = new Label(composite, SWT.NONE);
    label.setText("Device:");
    deviceCombo = new Combo(composite, SWT.READ_ONLY);
    deviceCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    String devicePrefix = "/dev/sd";
    for (char c = 'b'; c <= 'z'; c++) {
        deviceCombo.add(devicePrefix + c);
    }
    deviceCombo.setText(DEFAULT_DEVICE);
    return composite;
}

56. DeploymentInformationDialog#createCustomArea()

View license
@Override
protected Control createCustomArea(Composite parent) {
    Composite composite = parent;
    GridLayout layout = new GridLayout(2, false);
    layout.marginWidth = 0;
    composite.setLayout(layout);
    if (showVersionTextBox)
        createVersionTextBox(composite);
    if (enableDebugging)
        createDebugPortTextBox(parent);
    if (launchMode.equals(ILaunchManager.DEBUG_MODE))
        createInstanceSelectionCombo(parent);
    if (warnAboutIngress)
        createIngressWarning(parent);
    createDurationLabel(composite);
    composite.pack(true);
    return composite;
}

57. GroupEditor#createTabsSection()

View license
private void createTabsSection(Composite parent, FormToolkit toolkit) {
    Composite tabsSection = toolkit.createComposite(parent, SWT.NONE);
    tabsSection.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
    tabsSection.setLayout(new FillLayout());
    TabFolder tabFolder = new TabFolder(tabsSection, SWT.BORDER);
    Rectangle clientArea = parent.getClientArea();
    tabFolder.setLocation(clientArea.x, clientArea.y);
    TabItem summaryTab = new TabItem(tabFolder, SWT.NONE);
    summaryTab.setText("Summary");
    groupSummary = new GroupSummary(iam, tabFolder, toolkit);
    summaryTab.setControl(groupSummary);
    TabItem usersTab = new TabItem(tabFolder, SWT.NONE);
    usersTab.setText("Users");
    usersInGroup = new UsersInGroup(iam, tabFolder, toolkit, groupEditorInput);
    usersTab.setControl(usersInGroup);
    TabItem permissionsTab = new TabItem(tabFolder, SWT.NONE);
    permissionsTab.setText("Permissions");
    groupPermissions = new GroupPermissions(iam, tabFolder, toolkit);
    permissionsTab.setControl(groupPermissions);
}

58. UserEditor#createTabsSection()

Project: aws-toolkit-eclipse
Source File: UserEditor.java
View license
private void createTabsSection(Composite parent, FormToolkit toolkit) {
    Composite tabsSection = toolkit.createComposite(parent, SWT.NONE);
    tabsSection.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
    tabsSection.setLayout(new FillLayout());
    TabFolder tabFolder = new TabFolder(tabsSection, SWT.BORDER);
    Rectangle clientArea = parent.getClientArea();
    tabFolder.setLocation(clientArea.x, clientArea.y);
    TabItem summaryTab = new TabItem(tabFolder, SWT.NONE);
    summaryTab.setText("Summary");
    userSummary = new UserSummary(iam, tabFolder, toolkit);
    summaryTab.setControl(userSummary);
    TabItem permissionTab = new TabItem(tabFolder, SWT.NONE);
    permissionTab.setText("Permissions");
    userPermission = new UserPermission(iam, tabFolder, toolkit);
    permissionTab.setControl(userPermission);
    TabItem groupTab = new TabItem(tabFolder, SWT.NONE);
    groupTab.setText("Groups");
    groups = new GroupsForUser(iam, tabFolder, toolkit);
    groupTab.setControl(groups);
}

59. NewLambdaFunctionWizardPage#createProjectPackageClassNameControls()

View license
private void createProjectPackageClassNameControls(Composite composite) {
    Composite containerComposite = new Composite(composite, SWT.NONE);
    containerComposite.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false));
    int nColumns = 4;
    GridLayout layout = new GridLayout();
    layout.numColumns = nColumns;
    layout.marginHeight = 10;
    layout.marginWidth = 10;
    containerComposite.setLayout(layout);
    createContainerControls(containerComposite, nColumns);
    createPackageControls(containerComposite, nColumns);
    createTypeNameControls(containerComposite, nColumns);
}

60. ApplicationInsightsAddDialog#createDialogArea()

View license
@Override
protected Control createDialogArea(Composite parent) {
    setTitle(Messages.addKeyTtl);
    setMessage(Messages.addKeyMsg);
    setHelpAvailable(false);
    Composite container = new Composite(parent, SWT.NONE);
    GridLayout gridLayout = new GridLayout();
    GridData gridData = new GridData();
    gridLayout.numColumns = 2;
    gridLayout.marginBottom = 10;
    gridData.horizontalAlignment = SWT.FILL;
    gridData.grabExcessHorizontalSpace = true;
    container.setLayout(gridLayout);
    container.setLayoutData(gridData);
    createNameCmpnt(container);
    createKeyCmpnt(container);
    return super.createDialogArea(parent);
}

61. ApplicationInsightsNewDialog#createDialogArea()

View license
@Override
protected Control createDialogArea(Composite parent) {
    setTitle(Messages.newKeyTtl);
    setMessage(Messages.newKeyMsg);
    setHelpAvailable(false);
    Composite container = new Composite(parent, SWT.NONE);
    GridLayout gridLayout = new GridLayout();
    GridData gridData = new GridData();
    gridLayout.numColumns = 3;
    gridLayout.marginBottom = 10;
    gridData.horizontalAlignment = SWT.FILL;
    gridData.grabExcessHorizontalSpace = true;
    container.setLayout(gridLayout);
    container.setLayoutData(gridData);
    createNameCmpnt(container);
    createSubCmpnt(container);
    createResourceGroupCmpnt(container);
    createRegionCmpnt(container);
    return super.createDialogArea(parent);
}

62. ApplicationInsightsPreferencePage#createContents()

View license
@Override
protected Control createContents(Composite parent) {
    noDefaultAndApplyButton();
    Composite composite = new Composite(parent, SWT.NONE);
    GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 2;
    GridData gridData = new GridData();
    gridData.horizontalAlignment = SWT.FILL;
    gridData.grabExcessHorizontalSpace = true;
    composite.setLayout(gridLayout);
    composite.setLayoutData(gridData);
    createImportBtnCmpnt(composite, 2);
    createApplicationInsightsResourceTable(composite);
    return null;
}

63. BlobExplorerFileEditor#createToolbar()

View license
private void createToolbar(Composite parent) {
    GridLayout gridLayout = new GridLayout(2, false);
    GridData gridData = new GridData();
    gridData.horizontalAlignment = SWT.FILL;
    gridData.grabExcessHorizontalSpace = true;
    Composite container = new Composite(parent, 0);
    container.setLayout(gridLayout);
    container.setLayoutData(gridData);
    queryTextField = new Text(container, SWT.LEFT | SWT.BORDER);
    gridData = new GridData(SWT.FILL, SWT.CENTER, true, true);
    queryTextField.setLayoutData(gridData);
    createButtons(container);
    createBackButton(container);
}

64. SelectImageStep#createControl()

View license
@Override
public void createControl(Composite parent) {
    GridLayout gridLayout = new GridLayout(3, false);
    GridData gridData = new GridData();
    gridData.grabExcessHorizontalSpace = true;
    Composite container = new Composite(parent, 0);
    container.setLayout(gridLayout);
    container.setLayoutData(gridData);
    wizard.configStepList(container, 1);
    createImageList(container);
    imageDescription = wizard.createImageDescriptor(container);
    this.setControl(container);
}

65. SubscriptionPropertyPage#createContents()

View license
@Override
protected Control createContents(Composite parent) {
    Composite composite = new Composite(parent, SWT.NONE);
    GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 4;
    GridData gridData = new GridData();
    gridData.horizontalAlignment = SWT.FILL;
    gridData.grabExcessHorizontalSpace = true;
    composite.setLayout(gridLayout);
    composite.setLayoutData(gridData);
    createSubscriptionTable(composite);
    createButtons(composite);
    loadList();
    return composite;
}

66. CreateAppServicePlanDialog#createDialogArea()

View license
@Override
protected Control createDialogArea(Composite parent) {
    setTitle(Messages.crtAppPlanTtl);
    Composite container = new Composite(parent, SWT.NONE);
    GridLayout gridLayout = new GridLayout();
    GridData gridData = new GridData();
    gridLayout.numColumns = 2;
    gridData.horizontalAlignment = SWT.FILL;
    gridData.grabExcessHorizontalSpace = true;
    container.setLayout(gridLayout);
    container.setLayoutData(gridData);
    createNameCmpnt(container);
    createLocCmpnt(container);
    createPricingCmpnt(container);
    createWorkerCmpnt(container);
    return super.createDialogArea(parent);
}

67. CreateWebAppDialog#createDialogArea()

View license
@Override
protected Control createDialogArea(Composite parent) {
    setTitle(Messages.crtWebAppTtl);
    Composite container = new Composite(parent, SWT.NONE);
    GridLayout gridLayout = new GridLayout();
    GridData gridData = new GridData();
    gridLayout.numColumns = 3;
    gridData.horizontalAlignment = SWT.FILL;
    gridData.grabExcessHorizontalSpace = true;
    container.setLayout(gridLayout);
    container.setLayoutData(gridData);
    createNameCmpnt(container);
    createWebContainerCmpnt(container);
    createSubCmpnt(container);
    createResGrpCmpnt(container);
    createAppPlanCmpnt(container);
    return super.createDialogArea(parent);
}

68. WebAppDeployDialog#createDialogArea()

View license
protected Control createDialogArea(Composite parent) {
    setTitle(Messages.webAppTtl);
    Composite container = new Composite(parent, SWT.NONE);
    GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 2;
    GridData gridData = new GridData();
    gridData.horizontalAlignment = SWT.FILL;
    gridData.grabExcessHorizontalSpace = true;
    container.setLayout(gridLayout);
    container.setLayoutData(gridData);
    createWebAppLabel(container);
    createWebAppList(container);
    createDeployRootCheckBox(container);
    return super.createDialogArea(parent);
}

69. ImportSubscriptionDialog#createContents()

View license
/**
	 * Method creates contents of dialog.
	 */
protected Control createContents(Composite parent) {
    Composite container = new Composite(parent, SWT.NONE);
    GridLayout gridLayout = new GridLayout(3, false);
    container.setLayout(gridLayout);
    GridData gridData = new GridData();
    gridData.widthHint = 500;
    container.setLayoutData(gridData);
    // create download publish settings file button
    createDownloadPubSetFileButton(container);
    // create separator
    createHorizontalSeparator(container);
    // create Path components
    createPathComponents(container);
    return super.createContents(parent);
}

70. NewResourceGroupDialog#createDialogArea()

View license
@Override
protected Control createDialogArea(Composite parent) {
    setTitle(Messages.newResGrpTtl);
    setMessage(Messages.newResGrpMsg);
    setHelpAvailable(false);
    Composite container = new Composite(parent, SWT.NONE);
    GridLayout gridLayout = new GridLayout();
    GridData gridData = new GridData();
    gridLayout.numColumns = 2;
    gridLayout.marginBottom = 10;
    gridData.horizontalAlignment = SWT.FILL;
    gridData.grabExcessHorizontalSpace = true;
    container.setLayout(gridLayout);
    container.setLayoutData(gridData);
    createNameCmpnt(container);
    createSubCmpnt(container);
    createLocationCmpnt(container);
    return super.createDialogArea(parent);
}

71. CredentialsPropertyPage#createContents()

View license
@Override
protected Control createContents(Composite composite) {
    noDefaultAndApplyButton();
    PlatformUI.getWorkbench().getHelpSystem().setHelp(composite, com.gigaspaces.azure.wizards.Messages.pluginPrefix + com.gigaspaces.azure.wizards.Messages.credentialsHelp);
    Composite container = new Composite(composite, SWT.NONE);
    GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 2;
    GridData gridData = new GridData();
    gridData.horizontalAlignment = SWT.FILL;
    gridData.grabExcessHorizontalSpace = true;
    container.setLayout(gridLayout);
    container.setLayoutData(gridData);
    createSubscriptionIdComponent(container);
    return container;
}

72. SubscriptionPropertyPage#createContents()

View license
@Override
protected Control createContents(Composite parent) {
    noDefaultAndApplyButton();
    Composite composite = new Composite(parent, SWT.NONE);
    GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 2;
    GridData gridData = new GridData();
    gridData.horizontalAlignment = SWT.FILL;
    gridData.grabExcessHorizontalSpace = true;
    composite.setLayout(gridLayout);
    composite.setLayoutData(gridData);
    // create Import From Publish settings file button
    createImportBtnCmpnt(composite);
    createSubscriptionTable(composite);
    return composite;
}

73. PfxPwdDialog#createContents()

View license
@Override
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);
    createLabelComponent(container);
    createPfxPathTxtBox(container);
    createPasswordComponent(container);
    return super.createContents(parent);
}

74. ServiceEndptPreferencePage#createContents()

View license
@Override
protected Control createContents(Composite parent) {
    noDefaultAndApplyButton();
    Composite composite = new Composite(parent, SWT.NONE);
    GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 3;
    GridData gridData = new GridData();
    gridData.horizontalAlignment = SWT.FILL;
    gridData.grabExcessHorizontalSpace = true;
    composite.setLayout(gridLayout);
    composite.setLayoutData(gridData);
    createActiveSetComponent(composite);
    createGridComponents(composite);
    return null;
}

75. StorageAccountsPreferencePage#createContents()

View license
@Override
protected Control createContents(Composite parent) {
    noDefaultAndApplyButton();
    Composite composite = new Composite(parent, SWT.NONE);
    GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 2;
    GridData gridData = new GridData();
    gridData.horizontalAlignment = SWT.FILL;
    gridData.grabExcessHorizontalSpace = true;
    composite.setLayout(gridLayout);
    composite.setLayoutData(gridData);
    // create Import From Publish settings file button
    createImportBtnCmpnt(composite);
    createStorageTable(composite);
    return null;
}

76. WAApplicationDialog#createDialogArea()

View license
@Override
protected Control createDialogArea(Composite parent) {
    setTitle(Messages.appDlgTxt);
    setMessage(Messages.appDlgMsg);
    // display help contents
    PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, "com.persistent.winazure.eclipseplugin." + "windows_azure_addapp_dialog");
    Activator.getDefault().setSaved(false);
    Composite container = new Composite(parent, SWT.NONE);
    GridLayout gridLayout = new GridLayout();
    GridData gridData = new GridData();
    gridLayout.numColumns = 3;
    gridLayout.marginBottom = 10;
    gridData.verticalIndent = 10;
    gridData.horizontalAlignment = SWT.FILL;
    gridData.grabExcessHorizontalSpace = true;
    container.setLayout(gridLayout);
    container.setLayoutData(gridData);
    createAppFileCmpnt(container);
    createAppProjCmpnt(container);
    return super.createDialogArea(parent);
}

77. WARolesPropertyPage#createContents()

View license
@Override
protected Control createContents(Composite parent) {
    noDefaultAndApplyButton();
    //display help content
    PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, "com.persistent.winazure.eclipseplugin." + "windows_azure_project_roles");
    Composite composite = new Composite(parent, SWT.NONE);
    GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 2;
    GridData gridData = new GridData();
    gridData.horizontalAlignment = SWT.FILL;
    gridData.grabExcessHorizontalSpace = true;
    composite.setLayout(gridLayout);
    composite.setLayoutData(gridData);
    //draws roles table and buttons
    WARoles.displayRoles(composite, false);
    return composite;
}

78. CertificateDialog#createDialogArea()

View license
@Override
protected Control createDialogArea(Composite parent) {
    setTitle(Messages.certAddTtl);
    setMessage(Messages.certMsg);
    // Display help contents
    PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, "com.persistent.winazure.eclipseplugin." + "windows_azure_certificates_page");
    Activator.getDefault().setSaved(false);
    Composite container = new Composite(parent, SWT.NONE);
    GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 2;
    gridLayout.marginBottom = 25;
    GridData gridData = new GridData();
    gridData.horizontalAlignment = SWT.FILL;
    gridData.grabExcessHorizontalSpace = true;
    container.setLayout(gridLayout);
    container.setLayoutData(gridData);
    createNameComponent(container);
    createThumbprintComponent(container);
    return super.createDialogArea(parent);
}

79. WAEnvVarDialog#createContents()

View license
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);
}

80. ErrorList#addErrorItems()

Project: bndtools
Source File: ErrorList.java
View license
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);
    }
}

81. BundleTree#createControl()

Project: bndtools
Source File: BundleTree.java
View license
public void createControl() {
    setLayout(createGridLayout());
    setLayoutData(createFillGridData());
    sashForm = new SashForm(this, SWT.VERTICAL);
    sashForm.setLayout(createGridLayout());
    sashForm.setLayoutData(createFillGridData());
    createInfoViewer(sashForm);
    Composite composite = new Composite(sashForm, SWT.NONE);
    composite.setLayout(createGridLayout());
    composite.setLayoutData(createFillGridData());
    createBundleTreeViewer(composite);
    createButtons(composite);
    sashForm.setWeights(new int[] { 30, 70 });
}

82. ProjectListControl#createControl()

Project: bndtools
Source File: ProjectListControl.java
View license
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);
}

83. EmptyPreferencePage#createComposite()

Project: ccw
Source File: EmptyPreferencePage.java
View license
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;
}

84. EnterNameDialog#createDialogArea()

Project: dbeaver
Source File: EnterNameDialog.java
View license
@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;
}

85. SocksProxyConfiguratorUI#createControl()

View license
@Override
public void createControl(Composite parent) {
    final Composite composite = new Composite(parent, SWT.NONE);
    GridData gd = new GridData(GridData.FILL_BOTH);
    gd.minimumHeight = 200;
    composite.setLayoutData(gd);
    composite.setLayout(new GridLayout(2, false));
    //$NON-NLS-2$
    hostText = UIUtils.createLabelText(composite, "Host", null);
    hostText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    portText = UIUtils.createLabelSpinner(composite, "Port", SocksConstants.DEFAULT_SOCKS_PORT, 0, 65535);
    //$NON-NLS-2$
    userNameText = UIUtils.createLabelText(composite, "User name", null);
    userNameText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    //$NON-NLS-2$
    passwordText = UIUtils.createLabelText(composite, "Password", "", SWT.BORDER | SWT.PASSWORD);
    UIUtils.createPlaceholder(composite, 1);
    savePasswordCheckbox = UIUtils.createCheckbox(composite, CoreMessages.dialog_connection_auth_checkbox_save_password, false);
}

86. GenerateSQLDialog#createDialogArea()

Project: dbeaver
Source File: GenerateSQLDialog.java
View license
@Override
protected Composite createDialogArea(Composite parent) {
    Composite composite = super.createDialogArea(parent);
    Composite controlsPanel = UIUtils.createPlaceholder(composite, 1, 5);
    GridData gd = new GridData(GridData.FILL_BOTH);
    //gd.heightHint = 300;
    controlsPanel.setLayoutData(gd);
    createControls(controlsPanel);
    Label divLabel = new Label(controlsPanel, SWT.SEPARATOR | SWT.HORIZONTAL);
    divLabel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    createSQLPanel(controlsPanel);
    return composite;
}

87. DerbyPropertiesPage#createDefaultComposite()

Project: derby
Source File: DerbyPropertiesPage.java
View license
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;
}

88. DerbyPropertiesPage#createContents()

Project: derby
Source File: DerbyPropertiesPage.java
View license
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;
}

89. InfoFieldSection#createContents()

View license
@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);
}

90. ProjectAndPreferencePage#createContents()

View license
/*
	 * @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;
}

91. ConsoleInplaceDialog#createComposites()

View license
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);
}

92. NewProjectNameSection#createContents()

View license
@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();
}

93. SampleProjectSection#createContents()

View license
@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();
}

94. GeronimoRuntimeSourceWizardFragment#createComposite()

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

95. GeronimoRuntimeWizardFragment#createComposite()

View license
/*
	 * (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;
}

96. GeronimoServerWizardFragment#createComposite()

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

97. BannerPart#create()

Project: geronimo-devtools
Source File: BannerPart.java
View license
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());
}

98. AppraiseReviewsQueryPage#createPageContent()

View license
@Override
protected void createPageContent(SectionComposite parent) {
    Composite composite = parent.getContent();
    composite.setLayout(new GridLayout(2, false));
    requesterCheckbox = new Button(composite, SWT.CHECK);
    requesterCheckbox.setText("Requester");
    reviewerCheckbox = new Button(composite, SWT.CHECK);
    reviewerCheckbox.setText("Reviewer");
    Label reviewCommitPrefixLabel = new Label(composite, SWT.NONE);
    reviewCommitPrefixLabel.setText("Review Commit Hash (prefix):");
    reviewCommitPrefixText = new Text(composite, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
    composite.pack();
}

99. GoSearchPage#createControl()

Project: goclipse
Source File: GoSearchPage.java
View license
//---- 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);
}

100. LangProjectWizardFirstPage#createControl()

View license
@Override
public void createControl(Composite parent) {
    initializeDialogUnits(parent);
    Composite topControl = new Composite(parent, SWT.NULL);
    topControl.setLayoutData(new GridData(GridData.FILL_BOTH));
    topControl.setLayout(new GridLayout(1, false));
    createContents(topControl);
    setControl(topControl);
    Dialog.applyDialogFont(topControl);
}