Package com._1c.g5.v8.dt.ui
Interface IMultiSelection
- All Superinterfaces:
ISelection
,IStructuredSelection
,Iterable
- All Known Implementing Classes:
MultiSelection
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 Summary
Modifier and TypeMethodDescriptionaddSelection
(ISelection selection, String selectionLabel) Adds named selection to this multiple selection.getSelectionLabel
(ISelection selection) Obtains label for a givenISelection
.Methods inherited from interface org.eclipse.jface.viewers.ISelection
isEmpty
Methods inherited from interface org.eclipse.jface.viewers.IStructuredSelection
getFirstElement, iterator, size, stream, toArray, toList
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
addSelection
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
Obtains label for a givenISelection
.- Parameters:
selection
- the selection to get label of.- Returns:
- selection label or
null
if no label available.
-