Interface IMultiSelection

All Superinterfaces:
ISelection, IStructuredSelection, Iterable
All Known Implementing Classes:
MultiSelection

public interface IMultiSelection extends IStructuredSelection
Combines multiple named ISelection's while still mimicking the behavior of IStructuredSelection. Selection consumer may later decide what named selection it will use or just use the default IStructuredSelection.
  • Method Details

    • addSelection

      IMultiSelection addSelection(ISelection selection, String selectionLabel)
      Adds named selection to this multiple selection.
      Parameters:
      selection - the selection to add.
      selectionLabel - the selection label.
      Returns:
    • getSelections

      ISelection[] getSelections()
      Returns:
      ISelection's available.
    • getSelectionLabel

      String getSelectionLabel(ISelection selection)
      Obtains label for a given ISelection.
      Parameters:
      selection - the selection to get label of.
      Returns:
      selection label or null if no label available.