Package com._1c.g5.v8.dt.ui
Class MultiSelection
java.lang.Object
com._1c.g5.v8.dt.ui.MultiSelection
- All Implemented Interfaces:
IMultiSelection,Iterable,ISelection,IStructuredSelection
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMultiSelection(IStructuredSelection defaultSelection, String defaultSelectionLabel) Instantiates a new multi selection. -
Method Summary
Modifier and TypeMethodDescriptionaddSelection(ISelection selection, String selectionLabel) Adds named selection to this multiple selection.booleangetSelectionLabel(ISelection selection) Obtains label for a givenISelection.inthashCode()booleanisEmpty()Iterator<?>iterator()intsize()Object[]toArray()List<?>toList()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jface.viewers.IStructuredSelection
streamMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
MultiSelection
Instantiates a new multi selection.- Parameters:
defaultSelection- the default selection the will provide the defaultIStructuredSelection.defaultSelectionLabel- the default selection label.
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
addSelection
Description copied from interface:IMultiSelectionAdds named selection to this multiple selection.- Specified by:
addSelectionin interfaceIMultiSelection- Parameters:
selection- the selection to add.selectionLabel- the selection label.- Returns:
-
getSelections
- Specified by:
getSelectionsin interfaceIMultiSelection- Returns:
ISelection's available.
-
getSelectionLabel
Description copied from interface:IMultiSelectionObtains label for a givenISelection.- Specified by:
getSelectionLabelin interfaceIMultiSelection- Parameters:
selection- the selection to get label of.- Returns:
- selection label or
nullif no label available.
-
getFirstElement
- Specified by:
getFirstElementin interfaceIStructuredSelection
-
iterator
- Specified by:
iteratorin interfaceIStructuredSelection- Specified by:
iteratorin interfaceIterable
-
size
public int size()- Specified by:
sizein interfaceIStructuredSelection
-
toArray
- Specified by:
toArrayin interfaceIStructuredSelection
-
toList
- Specified by:
toListin interfaceIStructuredSelection
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceISelection
-