Interface ISelectionProvider

    • Method Detail

      • addSelectionChangedListener

        void addSelectionChangedListener​(ISelectionChangedListener listener)
        Adds a listener for selection changes in this selection provider. Has no effect if an identical listener is already registered.
        Parameters:
        listener - a selection changed listener
      • getSelection

        ISelection getSelection()
        Returns the current selection for this provider.
        Returns:
        the current selection
      • removeSelectionChangedListener

        void removeSelectionChangedListener​(ISelectionChangedListener listener)
        Removes the given selection change listener from this selection provider. Has no effect if an identical listener is not registered.
        Parameters:
        listener - a selection changed listener
      • setSelection

        void setSelection​(ISelection selection)
        Sets the current selection for this selection provider.
        Parameters:
        selection - the new selection