/** * Creates the composite as a part of the form. * * @param parent * the composite parent * @return the composite widget */ public Composite createComposite(Composite parent) { return createComposite(parent, SWT.NULL); }
/** * Creates the composite as a part of the form. * * @param parent * the composite parent * @return the composite widget */ public Composite createComposite(Composite parent) { return createComposite(parent, SWT.NULL); }
protected Composite createComposite(Composite parent, FormToolkit toolkit) { if (toolkit == null) return new Composite(parent, SWT.NULL); return toolkit.createComposite(parent); }
protected Composite createComposite(Composite parent, int gdStyle, int numCol, boolean colEqual, int margin) { Composite comp = fToolkit.createComposite(parent); GridLayout layout = new GridLayout(numCol, colEqual); layout.marginHeight = layout.marginWidth = margin; comp.setLayout(layout); comp.setLayoutData(new GridData(gdStyle)); return comp; }
/** * {@inheritDoc} */ @Override public void createPartControl(Composite parent, FormToolkit toolkit) { composite = toolkit.createComposite(parent); composite.setLayout(new GridLayout(1, false)); textInputController.createPartControl(composite, toolkit); }
private Composite createUISectionContainer(Section section) { Composite client = fToolkit.createComposite(section); client.setLayout(FormLayoutFactory.createSectionClientGridLayout(false, 1)); return client; }
public Composite createComposite(Composite parent, int style) { Composite c = super.createComposite(parent, style); paintBordersFor(c); return c; }
/** * {@inheritDoc} */ @Override public void createContents(Composite parent) { parent.setLayout(new GridLayout(1, false)); main = managedForm.getToolkit().createComposite(parent); main.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); GridLayout layout = new GridLayout(AbstractRuleEditingElement.NUM_GRID_COLUMNS, false); layout.horizontalSpacing = 8; main.setLayout(layout); }
private Composite createContainer(Composite parent, FormToolkit toolkit) { Composite container = toolkit.createComposite(parent); container.setLayout(FormLayoutFactory.createSectionClientGridLayout(false, 2)); GridData gd = new GridData(GridData.FILL_BOTH); gd.widthHint = 100; container.setLayoutData(gd); return container; }
private Composite createUISectionContainer(Composite parent) { Composite client = fToolkit.createComposite(fSection); client.setLayout(FormLayoutFactory.createSectionClientGridLayout(false, F_NUM_COLUMNS)); client.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); return client; }
@Override public Composite createComposite(Composite parent, int style) { Composite c = super.createComposite(parent, style); paintBordersFor(c); return c; }
private Composite createComposite(Composite parent, FormToolkit toolkit) { Composite comp = toolkit.createComposite(parent); TableWrapLayout layout = new TableWrapLayout(); layout.bottomMargin = layout.topMargin = layout.leftMargin = layout.rightMargin = 0; layout.numColumns = 3; comp.setLayout(layout); return comp; }
protected Composite createStaticSectionClient(FormToolkit toolkit, Composite parent) { Composite container = toolkit.createComposite(parent, SWT.NONE); container.setLayout(FormLayoutFactory.createSectionClientTableWrapLayout(false, 1)); TableWrapData data = new TableWrapData(TableWrapData.FILL_GRAB); container.setLayoutData(data); return container; }
private void createButtonComposite() { buttonComposite = page.getToolkit().createComposite(bodyWrapperComposite); GridLayout buttonlayout = new GridLayout(1, false); buttonlayout.marginHeight = 2; buttonlayout.marginWidth = 2; buttonlayout.verticalSpacing = 2; TableWrapData buttonData = new TableWrapData(TableWrapData.FILL); buttonComposite.setLayout(buttonlayout); buttonComposite.setLayoutData(buttonData); buttonComposite.setBackground(itemColor); }
Composite container = getManagedForm().getToolkit().createComposite(parent); container.setLayout(FormLayoutFactory.createSectionClientGridLayout(false, columns)); return container; } private String getStackTrace(Throwable throwable) {
private void createSubItemButtonComposite() { buttonComposite = page.getToolkit().createComposite(bodyWrapperComposite); TableWrapLayout xbuttonlayout = new TableWrapLayout(); xbuttonlayout.numColumns = SUBITEM_COLUMNS; xbuttonlayout.leftMargin = 0; xbuttonlayout.rightMargin = 0; xbuttonlayout.horizontalSpacing = 0; TableWrapData xbuttonData = new TableWrapData(TableWrapData.FILL); buttonComposite.setLayout(xbuttonlayout); buttonComposite.setLayoutData(xbuttonData); buttonComposite.setBackground(itemColor); }
private Composite createSectionClient(Section parent, FormToolkit toolkit) { Composite client = toolkit.createComposite(parent); GridLayoutFactory.fillDefaults().extendedMargins(2, 2, 2, 2) .applyTo(client); return client; }
public Composite createPlainComposite(Composite parent, int style) { Composite c = super.createComposite(parent, style); c.setBackground(parent.getBackground()); paintBordersFor(c); return c; }
@Override protected void createMasterPart(final IManagedForm managedForm, Composite parent) { Composite container = managedForm.getToolkit().createComposite(parent); container.setLayout(FormLayoutFactory.createMasterGridLayout(false, 1)); container.setLayoutData(new GridData(GridData.FILL_BOTH)); fSection = createMasterSection(managedForm, container); managedForm.addPart(fSection); Section section = fSection.getSection(); section.setLayout(FormLayoutFactory.createClearGridLayout(false, 1)); section.setLayoutData(new GridData(GridData.FILL_BOTH)); }
private void fillBody(IManagedForm managedForm, FormToolkit toolkit) { Composite body = managedForm.getForm().getBody(); body.setLayout(FormLayoutFactory.createFormGridLayout(true, 1)); managedForm.addPart(new InformationSection(this, body)); managedForm.addPart(new LocationsSection(this, body)); Composite linkComposite = toolkit.createComposite(body); linkComposite.setLayout(FormLayoutFactory.createFormGridLayout(true, 2)); linkComposite.setLayoutData(new GridData(GridData.FILL_BOTH)); createContentsSection(linkComposite, toolkit); createEnvironmentSection(linkComposite, toolkit); }