Interface SelectionAware

    • Method Detail

      • getSelection

        SelectionChangedListener.Selection getSelection​(List<VertexRef> selectedVertices,
                                                        ContentType type)
        Converts the provided 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
        Parameters:
        selectedVertices - The vertices currently selected in the Topology UI.
        type - The type to filter for. Represents the according browser table.
        Returns:
        The selection containing the List of Restrictions. Must NOT be null.
        See Also:
        SelectionChangedListener.Selection
      • contributesTo

        boolean contributesTo​(ContentType type)
        Allows the GraphProvider to define if it contributes to a certain ContentType. If false it is not shown in the browsers tab at all
        Parameters:
        type - The type to check if this contribute to
        Returns:
        true if this contributes to the provided type