Module SWT/All

This module is undocumented. This is a list of its definitions.

asComboList :: [Resource] -> <ReadGraph> [String]

Returns the names of the given resources in the same order, which is the form a combo box widget of an SWT document wants its item list in. Fails if any of the resources has no name.

columnBeanKey :: ColumnBean -> String

Returns the key of the given column, which selects the property of a row that the column shows.

columnBeanLabel :: ColumnBean -> String

Returns the label drawn in the header of the given column.

columnBeans :: ColumnsBean -> [ColumnBean]

Returns the columns of the given ColumnsBean in the order they are shown in.

columnsBean :: Resource -> <ReadGraph> ColumnsBean

Reads the value of the given resource as a ColumnsBean. Fails if the resource does not hold a literal of that bean type.

contributionType :: Variable -> <ReadGraph> String

contributionType var returns the name of the type resource that the typed variable tab contribution owning var contributes a tab for. It is the SCL value of the type property of SWT.TypedVariableTabContribution, so var is that property variable and its parent represents the contribution. Fails if the contribution does not have exactly one HasType statement.

decodeWSES :: Maybe String -> [WorkbenchSelectionElement]

Returns the workbench selection elements that the SWT document client stored under the given key. A document event handler receives such a key as the value of an event parameter, typically selection; the key is only valid for as long as the widget that produced it is alive.

getURI :: Variable -> <ReadGraph> String

Returns the URI of the given variable.

inputVariable :: Variable -> <ReadGraph> Variable

inputVariable var returns the value of the input property of the parent of var. When var is a property of a document component, the parent is the component and the result is the variable the document is being shown for.

propertyDisplayValue :: Variable -> String -> <ReadGraph> String

propertyDisplayValue var property returns the HasDisplayValue of the named property of var, that is, the string the user interface shows for that property. Fails if var has no such property or the property has no display value.

propertyGetter :: Variable -> <ReadGraph> String

Returns the value of the sclValueProperty property of var, or null if var has no such property.

propertyValueSetter :: Variable -> String -> <ReadGraph> AbstractEventHandler

propertyValueSetter var property returns an event handler that writes the text parameter of the event it receives into the HasDisplayValue of the named property of var. The handler runs in a write transaction of its own and resolves var again from its URI at that point, so the returned handler stays usable after the read transaction that created it has ended.

wseResource :: WorkbenchSelectionElement -> <ReadGraph> Resource

Returns the resource that the given workbench selection element stands for. The result is null for a selection element that does not stand for a resource, which the signature does not show.