public interface SelectionAware
GraphProvider
is "selection aware".
This allows GraphProvider
s to filter the browser tables
(e.g. alarm, node, etc) based on the current selection.
In order to achieve that all selected Vertices must be converted to a list of Restrictions.
The list of Restriction is represented by SelectionChangedListener.Selection
.Modifier and Type | Method and Description |
---|---|
boolean |
contributesTo(ContentType type)
Allows the
GraphProvider to define if it
contributes to a certain ContentType . |
SelectionChangedListener.Selection |
getSelection(List<VertexRef> selectedVertices,
ContentType type)
Converts the provided
selectedVertices to a Selection. |
SelectionChangedListener.Selection getSelection(List<VertexRef> selectedVertices, ContentType type)
selectedVertices
to a Selection.
The provided type
represents the according browser table.
This method is only invoked if contributesTo(ContentType)
returns to for the provided type
selectedVertices
- The vertices currently selected in the Topology UI.type
- The type to filter for. Represents the according browser table.SelectionChangedListener.Selection
boolean contributesTo(ContentType type)
GraphProvider
to define if it
contributes to a certain ContentType
.
If false
it is not shown in the browsers tab at alltype
- The type to check if this
contribute tothis
contributes to the provided type
Copyright © 2021. All rights reserved.