public IncludedFeaturesPortabilitySection(PDEFormPage page, Composite parent) { this(page, parent, PDEUIMessages.FeatureEditor_IncludedFeaturePortabilitySection_title, PDEUIMessages.FeatureEditor_IncludedFeaturePortabilitySection_desc, SWT.NULL); getSection().setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); }
@Override public void initialize(IManagedForm form) { super.initialize(form); getSection().setLayoutData(new GridData(GridData.FILL_BOTH)); }
private Section createStaticSection(Composite parent, FormToolkit toolkit) { Section section = toolkit.createSection(parent, ExpandableComposite.TITLE_BAR); section.clientVerticalSpacing = FormLayoutFactory.SECTION_HEADER_VERTICAL_SPACING; section.setLayout(FormLayoutFactory.createClearGridLayout(false, 1)); GridData data = new GridData(GridData.FILL_HORIZONTAL); section.setLayoutData(data); // toolkit.createCompositeSeparator(section); return section; }
ScrolledForm scrldfrm = managedForm.getForm(); scrldfrm.getBody().setLayout(new GridLayout()); scrldfrm.setText("Hello there!"); Section section = managedForm.getToolkit().createSection( managedForm.getForm().getBody(), Section.TWISTIE | Section.TITLE_BAR); section.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false)); managedForm.getToolkit().paintBordersFor(section); section.setText("Selected API"); section.setExpanded(true); textName = new Text(managedForm.getForm().getBody(), SWT.BORDER); textName.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false); managedForm.getToolkit().adapt(textName, true, true); textName.setEnabled(false);
public Composite createStandardSection ( final Composite parent, final String sectionLabel, final boolean fillVeritcal ) { final Section section = this.toolkit.createSection ( parent, sectionLabel != null ? ExpandableComposite.TITLE_BAR : ExpandableComposite.NO_TITLE ); if ( sectionLabel != null ) { section.setText ( sectionLabel ); } final Composite client = createStandardComposite ( section ); section.setClient ( client ); client.setLayout ( new GridLayout ( 3, false ) ); section.setLayoutData ( new GridData ( GridData.FILL, GridData.BEGINNING, true, fillVeritcal ) ); return client; }
public Composite createStandardSection ( final Composite parent, final String sectionLabel, final boolean fillVeritcal ) { final Section section = this.toolkit.createSection ( parent, sectionLabel != null ? ExpandableComposite.TITLE_BAR : ExpandableComposite.NO_TITLE ); if ( sectionLabel != null ) { section.setText ( sectionLabel ); } final Composite client = createStandardComposite ( section ); section.setClient ( client ); client.setLayout ( new GridLayout ( 3, false ) ); section.setLayoutData ( new GridData ( GridData.FILL, GridData.BEGINNING, true, fillVeritcal ) ); return client; }
private void configureUISection() { fSection.setLayout(FormLayoutFactory.createClearGridLayout(false, 1)); GridData data = new GridData(GridData.FILL_HORIZONTAL); fSection.setLayoutData(data); fSection.setText(PDEUIMessages.SplashProgressSection_progressName); fSection.setDescription(PDEUIMessages.SplashProgressSection_progressSectionDesc); }
private Section createSection(Composite parent, FormToolkit toolkit, String title) { Section section = toolkit.createSection(parent, ExpandableComposite.TITLE_BAR); section.clientVerticalSpacing = FormLayoutFactory.SECTION_HEADER_VERTICAL_SPACING; section.setText(title); section.setLayout(FormLayoutFactory.createClearTableWrapLayout(false, 1)); section.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_BEGINNING)); return section; }
private Control createLicensePage(FormToolkit toolkit, Composite parent) { Composite page = toolkit.createComposite(parent); GridLayout layout = new GridLayout(); layout.numColumns = 2; layout.marginWidth = 2; layout.marginHeight = 0; layout.verticalSpacing = 8; layout.marginTop = 0; page.setLayout(layout); LicenseFeatureSection licenseSection = new LicenseFeatureSection(getPage(), page, fSourceConfiguration); licenseSection.getSection().setLayoutData(new GridData(GridData.FILL_BOTH | GridData.VERTICAL_ALIGN_BEGINNING)); getManagedForm().addPart(licenseSection); return page; }
@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)); }
@Override public void createClient(Section section, FormToolkit toolkit) { Composite container = toolkit.createComposite(section); container.setLayout(FormLayoutFactory.createSectionClientGridLayout(false, 2)); createLeftSection(container, toolkit); createRightSection(container, toolkit); toolkit.paintBordersFor(container); section.setLayout(FormLayoutFactory.createClearGridLayout(false, 1)); GridData data = new GridData(GridData.FILL_HORIZONTAL); data.horizontalSpan = 2; section.setLayoutData(data); section.setClient(container); }
Section section = getManagedForm().getToolkit().createSection(parent, style); section.clientVerticalSpacing = FormLayoutFactory.SECTION_HEADER_VERTICAL_SPACING; section.setLayout(FormLayoutFactory.createClearGridLayout(false, 1)); section.setText(text); section.setDescription(description); GridData data = new GridData(GridData.FILL_HORIZONTAL); section.setLayoutData(data); return section; } public Composite createUISectionContainer(Composite parent, int columns) {
public IncludedFeaturesSection(PDEFormPage page, Composite parent) { super(page, parent, Section.DESCRIPTION, new String[] { PDEUIMessages.FeatureEditor_IncludedFeatures_new, PDEUIMessages.FeatureEditor_IncludedFeatures_remove, PDEUIMessages.FeatureEditor_SpecSection_synchronize, PDEUIMessages.FeatureEditor_IncludedFeatures_up, PDEUIMessages.FeatureEditor_IncludedFeatures_down }); getSection().setText(PDEUIMessages.FeatureEditor_IncludedFeatures_title); getSection().setDescription(PDEUIMessages.FeatureEditor_IncludedFeatures_desc); getTablePart().setEditable(false); getSection().setLayoutData(new GridData(GridData.FILL_BOTH)); }
protected final Section createStaticSection(FormToolkit toolkit, Composite parent, String text) { Section section = toolkit.createSection(parent, ExpandableComposite.TITLE_BAR); section.clientVerticalSpacing = FormLayoutFactory.SECTION_HEADER_VERTICAL_SPACING; section.setText(text); section.setLayout(FormLayoutFactory.createClearTableWrapLayout(false, 1)); TableWrapData data = new TableWrapData(TableWrapData.FILL_GRAB); section.setLayoutData(data); return section; }
/** * {@inheritDoc} */ @Override public void createContent(IManagedForm managedForm, Composite parent) { FormToolkit toolkit = managedForm.getToolkit(); section = toolkit.createSection(parent, Section.TITLE_BAR | Section.EXPANDED); section.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); section.setText(title); descriptionLabel = toolkit.createLabel(section, ""); descriptionLabel.setForeground(toolkit.getColors().getColor(IFormColors.TITLE)); section.setDescriptionControl(descriptionLabel); Composite main = toolkit.createComposite(section); main.setLayout(new GridLayout(1, false)); section.setClient(main); super.createContent(new DirtyStateDelegatingManagedForm(managedForm, section), main); }
private FormText createClient(Section section, String content, FormToolkit toolkit) { FormText text = toolkit.createFormText(section, true); try { text.setText(content, true, false); } catch (SWTException e) { text.setText(e.getMessage(), false, false); } section.setClient(text); section.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB)); text.addHyperlinkListener(this); return text; }
private void createCommandDetails(Composite parent) { Composite c = fCCP.createComposite(parent, GridData.FILL_BOTH, 1, true, 5); Section section = fToolkit.createSection(c, ExpandableComposite.TITLE_BAR); section.setText(PDEUIMessages.CommandDetails_groupName); section.setLayoutData(new GridData(GridData.FILL_BOTH)); Composite comp = fCCP.createComposite(section); createBasicInfo(comp); if (fCCP.getFilterType() == CommandComposerPart.F_FILTER_NOT_SET) createPreviewLabelComp(comp); createParameters(comp); section.setClient(comp); createLinks(c); }
@Override public void createClient(Section section, FormToolkit toolkit) { Composite container = createClientContainer(section, 2, toolkit); createViewerPartControl(container, SWT.MULTI, 2, toolkit); TablePart tablePart = getTablePart(); fViewer = tablePart.getTableViewer(); fViewer.setLabelProvider(PDEPlugin.getDefault().getLabelProvider()); PDEPlugin.getDefault().getLabelProvider().connect(this); fViewer.setContentProvider(ArrayContentProvider.getInstance()); getSchema().addModelChangedListener(this); toolkit.paintBordersFor(container); section.setClient(container); section.setLayoutData(new GridData(GridData.FILL_BOTH)); initialize(); }
@Override public void createClient(Section section, FormToolkit toolkit) { section.setLayout(FormLayoutFactory.createClearGridLayout(false, 1)); GridData data = new GridData(GridData.FILL_BOTH); section.setLayoutData(data); Composite container = createClientContainer(section, 2, toolkit); createViewerPartControl(container, SWT.MULTI, 2, toolkit); TablePart tablePart = getTablePart(); fPluginViewer = tablePart.getTableViewer(); fPluginViewer.setContentProvider(new PluginContentProvider()); fPluginViewer.setLabelProvider(PDEPlugin.getDefault().getLabelProvider()); fPluginViewer.setComparator(ListUtil.NAME_COMPARATOR); toolkit.paintBordersFor(container); makeActions(); section.setClient(container); initialize(); createSectionToolbar(section, toolkit); }
@Override public void createClient(Section section, FormToolkit toolkit) { section.setLayout(FormLayoutFactory.createClearGridLayout(false, 1)); GridData data = new GridData(GridData.FILL_BOTH); section.setLayoutData(data); Composite container = createClientContainer(section, 2, toolkit); createViewerPartControl(container, SWT.MULTI, 2, toolkit); TablePart tablePart = getTablePart(); fIncludesViewer = tablePart.getTableViewer(); fIncludesViewer.setContentProvider(new IncludedFeaturesContentProvider()); fIncludesViewer.setLabelProvider(PDEPlugin.getDefault().getLabelProvider()); fIncludesViewer.setComparator(ListUtil.NAME_COMPARATOR); toolkit.paintBordersFor(container); makeActions(); section.setClient(container); initialize(); createSectionToolbar(section, toolkit); }