@Override protected void createClient(Section section, FormToolkit toolkit) { container = toolkit.createComposite(section); GridLayout layout = new GridLayout(); layout.numColumns = 2; container.setLayout(layout); section.setClient(container); linkContainer = toolkit.createComposite(container); linkContainer.setLayoutData(new GridData(GridData.FILL_BOTH)); GridLayout linkLayout = new GridLayout(); linkLayout.marginWidth = 0; linkLayout.marginHeight = 0; linkLayout.verticalSpacing = 0; linkContainer.setLayout(linkLayout); }
private void updateSectionClient(Section section, Composite client, FormToolkit toolkit) { hookExpansionGrabbing(section); toolkit.paintBordersFor(client); section.setClient(client); }
private void createExportingSection(Composite parent, FormToolkit toolkit) { Section section = createStaticSection(toolkit, parent, PDEUIMessages.OverviewPage_exportingTitle); section.setClient(createClient(section, PDEUIMessages.Product_overview_exporting, toolkit)); }
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 createExportingSection(IManagedForm managedForm, Composite parent, FormToolkit toolkit) { Section section = createStaticSection(toolkit, parent, PDEUIMessages.ManifestEditor_DeployingSection_title); Composite container = createStaticSectionClient(toolkit, section); createClient(container, isFragment() ? PDEUIMessages.OverviewPage_fDeploying : PDEUIMessages.OverviewPage_deploying, toolkit); section.setClient(container); }
@Override public void expansionStateChanged(ExpansionEvent event) { if (section.getClient() == null) { Control content = createContent(section, toolkit); section.setClient(content); getPage().reflow(); } } });
@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); }
@Override public void createClient(Section section, FormToolkit toolkit) { Composite container = createClientContainer(section, 2, toolkit); createTree(container, toolkit); toolkit.paintBordersFor(container); section.setClient(container); initialize(); createSectionToolbar(section, toolkit); }
/** * {@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 FormText createText(Section section, String content, FormToolkit toolkit) { Composite container = toolkit.createComposite(section, SWT.NONE); container.setLayout(FormLayoutFactory.createSectionClientTableWrapLayout(false, 1)); section.setClient(container); FormText text = toolkit.createFormText(container, true); try { text.setText(content, true, false); } catch (SWTException e) { text.setText(e.getMessage(), false, false); } TableWrapData data = new TableWrapData(TableWrapData.FILL_GRAB); data.maxWidth = 250; text.setLayoutData(data); 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); }
private void createExtensionSection(IManagedForm managedForm, Composite parent, FormToolkit toolkit) { String sectionTitle = PDEUIMessages.ManifestEditor_ExtensionSection_title; Section section = createStaticSection(toolkit, parent, sectionTitle); Composite container = createStaticSectionClient(toolkit, section); FormText text = createClient(container, isFragment() ? PDEUIMessages.OverviewPage_fExtensionContent : PDEUIMessages.OverviewPage_extensionContent, toolkit); PDELabelProvider lp = PDEPlugin.getDefault().getLabelProvider(); text.setImage("page", lp.get(PDEPluginImages.DESC_PAGE_OBJ, SharedLabelProvider.F_EDIT)); //$NON-NLS-1$ section.setClient(container); }
private void createUI(Composite parent) { // Create the element details section createUISectionElementDetails(parent); // Create the client container for the section Composite client = createUISectionContainer(fSectionElementDetails); // Create the info hover control for the body text field and hyperlink createUIInfoHoverControl(client); // Create the body text label createUIHyperlinkBody(client); // Create the body text field createUITextBody(client); // Associate the client with the section fToolkit.paintBordersFor(client); fSectionElementDetails.setClient(client); // Needed for keyboard paste operation to work markDetailsPart(fSectionElementDetails); }
private void createTestingSection(Composite parent, FormToolkit toolkit) { Section section = createStaticSection(toolkit, parent, PDEUIMessages.Product_OverviewPage_testing); FormText text = createClient(section, getLauncherText(getLauncherHelper().isOSGi(), PDEUIMessages.Product_overview_testing), toolkit); PDELabelProvider lp = PDEPlugin.getDefault().getLabelProvider(); text.setImage("run", lp.get(PDEPluginImages.DESC_RUN_EXC)); //$NON-NLS-1$ text.setImage("debug", lp.get(PDEPluginImages.DESC_DEBUG_EXC)); //$NON-NLS-1$ text.setImage("profile", lp.get(PDEPluginImages.DESC_PROFILE_EXC)); //$NON-NLS-1$ section.setClient(text); }
@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) { Composite container = createClientContainer(section, 2, toolkit); GridLayout layout = (GridLayout) container.getLayout(); layout.verticalSpacing = 5; createViewerPartControl(container, SWT.SINGLE, 2, toolkit); TablePart tablePart = getTablePart(); fUrlViewer = tablePart.getTableViewer(); fUrlViewer.setContentProvider(new URLContentProvider()); fUrlViewer.setLabelProvider(new URLLabelProvider()); toolkit.paintBordersFor(container); makeActions(); section.setClient(container); initialize(); }
private void createTestingSection(IManagedForm managedForm, Composite parent, FormToolkit toolkit) { Section section = createStaticSection(toolkit, parent, PDEUIMessages.ManifestEditor_TestingSection_title); PDELabelProvider lp = PDEPlugin.getDefault().getLabelProvider(); Composite container = createStaticSectionClient(toolkit, section); String prefixText = (!((ManifestEditor) getEditor()).showExtensionTabs()) ? PDEUIMessages.OverviewPage_OSGiTesting : isFragment() ? PDEUIMessages.OverviewPage_fTesting : PDEUIMessages.OverviewPage_testing; FormText text = createClient(container, getLauncherText(getLauncherHelper().isOSGi(), prefixText), toolkit); text.setImage("run", lp.get(PDEPluginImages.DESC_RUN_EXC)); //$NON-NLS-1$ text.setImage("debug", lp.get(PDEPluginImages.DESC_DEBUG_EXC)); //$NON-NLS-1$ text.setImage("profile", lp.get(PDEPluginImages.DESC_PROFILE_EXC)); //$NON-NLS-1$ section.setClient(container); }
@Override public void createClient(Section section, FormToolkit toolkit) { Composite container = createClientContainer(section, 2, toolkit); TablePart tablePart = getTablePart(); createViewerPartControl(container, SWT.MULTI, 2, toolkit); pointTable = tablePart.getTableViewer(); pointTable.setContentProvider(new TableContentProvider()); pointTable.setLabelProvider(PDEPlugin.getDefault().getLabelProvider()); toolkit.paintBordersFor(container); section.setClient(container); pointTable.setInput(getPage()); selectFirstExtensionPoint(); IBaseModel model = getPage().getModel(); if (model instanceof IModelChangeProvider) ((IModelChangeProvider) model).addModelChangedListener(this); tablePart.setButtonEnabled(0, model.isEditable()); }