/** * Creates header. * * @param heading * Heading to use. */ private void createHeading(String heading) { getSection().setText(heading); }
private void fillBranches(List<Ref> result) { branchViewer.setInput(result); branchSection.setText(MessageFormat.format( UIText.CommitEditorPage_SectionBranches, Integer.valueOf(result.size()))); }
private void updateSectionText() { Integer stagedCount = Integer.valueOf(stagedTableViewer.getTable() .getItemCount()); stagedSection.setText(MessageFormat.format( UIText.StagingView_StagedChanges, stagedCount)); Integer unstagedCount = Integer.valueOf(unstagedTableViewer.getTable() .getItemCount()); unstagedSection.setText(MessageFormat.format( UIText.StagingView_UnstagedChanges, unstagedCount)); }
protected Section createSection(Composite parent, FormToolkit toolkit, int style) { Section section = toolkit.createSection(parent, style); section.setText(getPartName()); return section; }
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); }
public LibraryVisibilitySection(PDEFormPage formPage, Composite parent) { super(formPage, parent, Section.DESCRIPTION, new String[] {PDEUIMessages.ManifestEditor_ExportSection_add, PDEUIMessages.ManifestEditor_ExportSection_remove}); getSection().setText(PDEUIMessages.ManifestEditor_ExportSection_title); getSection().setDescription(PDEUIMessages.ManifestEditor_ExportSection_desc); fHandleDefaultButton = false; }
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; }
public CategorySection(PDEFormPage formPage, Composite parent) { super(formPage, parent, Section.DESCRIPTION, new String[] {PDEUIMessages.CategorySection_new, PDEUIMessages.CategorySection_add, null, PDEUIMessages.CategorySection_environment, null, PDEUIMessages.CategorySection_build, PDEUIMessages.CategorySection_buildAll}); getSection().setText(PDEUIMessages.CategorySection_title); getSection().setDescription(PDEUIMessages.CategorySection_desc); }
public ElementSection(PDEFormPage page, Composite parent) { super(page, parent, Section.DESCRIPTION, new String[] {PDEUIMessages.SchemaEditor_ElementSection_newElement, PDEUIMessages.SchemaEditor_ElementSection_newAttribute, PDEUIMessages.SchemaEditor_ElementSection_newChoice, PDEUIMessages.SchemaEditor_ElementSection_newSequence, PDEUIMessages.SchemaEditor_ElementSection_remove}); getSection().setText(PDEUIMessages.SchemaEditor_ElementSection_title); getSection().setDescription(PDEUIMessages.SchemaEditor_ElementSection_desc); }
public SchemaIncludesSection(SchemaOverviewPage page, Composite parent) { super(page, parent, Section.DESCRIPTION, new String[] {PDEUIMessages.SchemaIncludesSection_addButton, PDEUIMessages.SchemaIncludesSection_removeButton}); getSection().setText(PDEUIMessages.SchemaIncludesSection_title); getSection().setDescription(PDEUIMessages.SchemaIncludesSection_description); }
public RequiresSection(FeatureDependenciesPage page, Composite parent) { super(page, parent, Section.DESCRIPTION, new String[] {PDEUIMessages.FeatureEditor_RequiresSection_plugin, PDEUIMessages.FeatureEditor_RequiresSection_feature, PDEUIMessages.FeatureEditor_RequiresSection_remove, PDEUIMessages.FeatureEditor_RequiresSection_compute}); getSection().setText(PDEUIMessages.FeatureEditor_RequiresSection_title); getSection().setDescription(PDEUIMessages.FeatureEditor_RequiresSection_desc); getTablePart().setEditable(false); }
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)); }
private Section createContentSection(IManagedForm managedForm, Composite parent, FormToolkit toolkit) { Section section = createStaticSection(parent, toolkit); FormText text; section.setText(PDEUIMessages.FeatureEditor_InfoPage_ContentSection_title); text = createClient(section, PDEUIMessages.FeatureEditor_InfoPage_ContentSection_text, toolkit); PDELabelProvider lp = PDEPlugin.getDefault().getLabelProvider(); text.setImage("page", lp.get(PDEPluginImages.DESC_PAGE_OBJ, //$NON-NLS-1$ SharedLabelProvider.F_EDIT)); return section; }
public PortabilitySection(PDEFormPage page, Composite parent, String title, String desc, int toggleStyle) { super(page, parent, Section.DESCRIPTION | toggleStyle); getSection().setText(title); getSection().setDescription(desc); createClient(getSection(), page.getManagedForm().getToolkit()); }
public IncludedFeaturesDetailsSection(PDEFormPage page, Composite parent, String title, String desc, int toggleStyle) { super(page, parent, Section.DESCRIPTION | toggleStyle); getSection().setText(title); getSection().setDescription(desc); createClient(getSection(), page.getManagedForm().getToolkit()); }
public CategoryDetailsSection(PDEFormPage page, Composite parent, String title, String desc, int toggleStyle) { super(page, parent, Section.DESCRIPTION | toggleStyle); getSection().setText(title); getSection().setDescription(desc); createClient(getSection(), page.getManagedForm().getToolkit()); }
public PluginDetailsSection(PDEFormPage page, Composite parent, String title, String desc, int toggleStyle) { super(page, parent, Section.DESCRIPTION | toggleStyle); getSection().setText(title); getSection().setDescription(desc); createClient(getSection(), page.getManagedForm().getToolkit()); }
public FeatureDetailsSection(PDEFormPage page, Composite parent, String title, String desc, int toggleStyle) { super(page, parent, Section.DESCRIPTION | toggleStyle); getSection().setText(title); getSection().setDescription(desc); createClient(getSection(), page.getManagedForm().getToolkit()); }
public RequiresSection(DependenciesPage page, Composite parent, String[] labels) { super(page, parent, Section.DESCRIPTION, labels); getSection().setText(PDEUIMessages.RequiresSection_title); boolean fragment = ((IPluginModelBase) getPage().getModel()).isFragmentModel(); if (fragment) getSection().setDescription(PDEUIMessages.RequiresSection_fDesc); else getSection().setDescription(PDEUIMessages.RequiresSection_desc); getTablePart().setEditable(false); resetImportInsertIndex(); }