public class TextAttributeDescriptor extends AttributeDescriptor implements org.eclipse.ui.views.properties.IPropertyDescriptor
Describes a textual XML attribute.
Such an attribute has a tooltip and would typically be displayed by
{@link UiTextAttributeNode} using a label widget and text field.
This is the "default" kind of attribute. If in doubt, use this.
Fields Summary
private String
mUiName
private String
mTooltip
Constructors Summary
public TextAttributeDescriptor(String xmlLocalName, String uiName, String nsUri, String tooltip)
Creates a new {@link TextAttributeDescriptor}
param
xmlLocalName The XML name of the attribute (case sensitive)
param
uiName The UI name of the attribute. Cannot be an empty string and cannot be null.
param
nsUri The URI of the attribute. Can be null if attribute has no namespace.
See {@link SdkConstants#NS_RESOURCES} for a common value.
The tooltip string is either null or a non-empty string.
The tooltip is based on the Javadoc of the attribute and already processed via
{@link DescriptorsUtils#formatTooltip(String)} to be displayed right away as
a UI tooltip.
An empty string is converted to null, to match the behavior of setToolTipText() in
{@link Control}.