Module Simantics/WorkbenchSelection
This module is undocumented. This is a list of its definitions.
nodeContextToWorkbenchSelectionElement :: NodeContext -> WorkbenchSelectionElement
Returns a workbench selection element that stands for the given node
context, so that a node of a browser can be handed on as a selection.
possibleWSEJson :: WorkbenchSelectionElement -> <ReadGraph> Maybe String
Returns a JSON description of what the given selection element stands for.
For a variable the object has type "Variable" and carries the URI, GUID,
resource id, type resources, classifications and datatype of the variable.
For a resource the type is "Resource" with the URI, GUID, resource id and
type resources. When the element stands for neither, the description is
{ "type": "Unknown" }.
possibleWSEResource :: WorkbenchSelectionElement -> <ReadGraph> Maybe Resource
Returns the resource the given selection element stands for, or Nothing
if it does not stand for one.
possibleWSEVariable :: WorkbenchSelectionElement -> <ReadGraph> Maybe Variable
Returns the variable the given selection element stands for, or Nothing
if it does not stand for one.
|