Package com._1c.g5.v8.dt.ui
Interface IMultiSelection
-
- All Superinterfaces:
ISelection,IStructuredSelection,Iterable
- All Known Implementing Classes:
MultiSelection
public interface IMultiSelection extends IStructuredSelection
Combines multiple namedISelection's while still mimicking the behavior ofIStructuredSelection. Selection consumer may later decide what named selection it will use or just use the defaultIStructuredSelection.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IMultiSelectionaddSelection(ISelection selection, String selectionLabel)Adds named selection to this multiple selection.StringgetSelectionLabel(ISelection selection)Obtains label for a givenISelection.ISelection[]getSelections()-
Methods inherited from interface org.eclipse.jface.viewers.ISelection
isEmpty
-
Methods inherited from interface org.eclipse.jface.viewers.IStructuredSelection
getFirstElement, iterator, size, toArray, toList
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
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 givenISelection.- Parameters:
selection- the selection to get label of.- Returns:
- selection label or
nullif no label available.
-
-