Class StatelessSelectionProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.common.ui.jface.viewers.StatelessSelectionProvider
-
- All Implemented Interfaces:
ISelectionProvider
public class StatelessSelectionProvider extends Object implements ISelectionProvider
Implementation of theISelectionProvider
based on the stateless selection.
-
-
Constructor Summary
Constructors Constructor Description StatelessSelectionProvider(Object... objects)
Creates StatelessSelectionProvider withStructuredSelection
from the given elements.StatelessSelectionProvider(ISelection selection)
Creates StatelessSelectionProvider usingselection
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSelectionChangedListener(ISelectionChangedListener listener)
NothingISelection
getSelection()
void
removeSelectionChangedListener(ISelectionChangedListener listener)
Nothingvoid
setSelection(ISelection selection)
Nothing
-
-
-
Constructor Detail
-
StatelessSelectionProvider
public StatelessSelectionProvider(ISelection selection)
Creates StatelessSelectionProvider usingselection
- Parameters:
selection
- - the selection
-
StatelessSelectionProvider
public StatelessSelectionProvider(Object... objects)
Creates StatelessSelectionProvider withStructuredSelection
from the given elements.- Parameters:
selection
- - the elements
-
-
Method Detail
-
addSelectionChangedListener
public void addSelectionChangedListener(ISelectionChangedListener listener)
Nothing- Specified by:
addSelectionChangedListener
in interfaceISelectionProvider
-
getSelection
public ISelection getSelection()
- Specified by:
getSelection
in interfaceISelectionProvider
-
removeSelectionChangedListener
public void removeSelectionChangedListener(ISelectionChangedListener listener)
Nothing- Specified by:
removeSelectionChangedListener
in interfaceISelectionProvider
-
setSelection
public void setSelection(ISelection selection)
Nothing- Specified by:
setSelection
in interfaceISelectionProvider
-
-