/** * {@inheritDoc} */ @Override public void setDescriptionText(String description) { descriptionLabel.setText(description); section.layout(true); }
/** * Sets the description text for this section. * * @param description * new description text. */ @Override public void setDescriptionText(String description) { descriptionLabel.setText(description); getSection().layout(true); }
private void updateUISectionElementDetails() { // Set the general or specifc section description depending if whether // the plugin element data is defined String description; if (fPluginElement == null) { description = PDEUIMessages.ExtensionElementBodyTextDetails_sectionDescElementGeneral; } else { description = NLS.bind(PDEUIMessages.ExtensionElementBodyTextDetails_sectionDescElementSpecific, fPluginElement.getName()); } if (fSchemaElement != null && fSchemaElement.isDeprecated()) { description += "\n\n"; //$NON-NLS-1$ description += NLS.bind(PDEUIMessages.ElementIsDeprecated, fSchemaElement.getName()); } fSectionElementDetails.setDescription(description); // Re-layout the section to properly wrap the new section description fSectionElementDetails.layout(); }
private void updateText(String helpText) { text.setText(helpText != null ? helpText : defaultText, helpText != null, false); getSection().layout(); getManagedForm().reflow(true); }
private void updateDescription() { if (input != null) { String iname = input.getName(); String label = null; if (0 == input.getAttributeCount()) { label = PDEUIMessages.ExtensionElementDetails_descNoAttributes; } else if (schemaElement != null && schemaElement.hasDeprecatedAttributes()) { label = NLS.bind(PDEUIMessages.ExtensionElementDetails_setDescDepr, iname); } else { label = NLS.bind(PDEUIMessages.ExtensionElementDetails_setDesc, iname); } if (schemaElement != null && schemaElement.isDeprecated()) { label += "\n\n"; //$NON-NLS-1$ label += NLS.bind(PDEUIMessages.ElementIsDeprecated, iname); } section.setDescription(label); } else { // no extensions = no description section.setDescription(""); //$NON-NLS-1$ } section.layout(); }
private void setActiveScopeSet(ScopeSet set) { scopeSetLink.setText(set.getName()); scopeSetManager.setActiveSet(set); updateMasters(set); scopeSection.layout(); if (parent != null) parent.reflow(); }
buff.append("</form>"); //$NON-NLS-1$ searchResults.setText(buff.toString(), true, false); section.layout(); if (reflow) part.reflow();
private void updateRows() { if (input == null) return; IPluginAttribute[] atts = input.getAttributes(); FormToolkit toolkit = getManagedForm().getToolkit(); boolean rowsAdded = false; for (int i = 0; i < atts.length; i++) { if (!hasAttribute(atts[i].getName())) { rows.add(createAttributeRow(atts[i], (Composite) section.getClient(), toolkit, 2)); rowsAdded = true; } } if (rowsAdded) { ((Composite) section.getClient()).layout(true); section.layout(true); section.getParent().layout(true); reflow(); } }
this.getSection().layout(); } else { implName.setText("");