Package com._1c.g5.v8.dt.ui.dialog
Class SelectionProviderWrapper
- java.lang.Object
-
- com._1c.g5.v8.dt.ui.dialog.SelectionProviderWrapper
-
- All Implemented Interfaces:
ISelectionProvider
public class SelectionProviderWrapper extends Object implements ISelectionProvider
Selection provider wrapper.
-
-
Constructor Summary
Constructors Constructor Description SelectionProviderWrapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSelectionChangedListener(ISelectionChangedListener listener)
void
addViewer(StructuredViewer viewer)
Adds viewer.ISelection
getSelection()
StructuredViewer
getViewerInFocus()
Returns the viewer in focus or null if no viewer has the focusvoid
removeSelectionChangedListener(ISelectionChangedListener listener)
void
setFocusedViewer(StructuredViewer viewer)
Sets focused viewer.void
setSelection(ISelection selection)
-
-
-
Method Detail
-
addSelectionChangedListener
public void addSelectionChangedListener(ISelectionChangedListener listener)
- Specified by:
addSelectionChangedListener
in interfaceISelectionProvider
-
addViewer
public void addViewer(StructuredViewer viewer)
Adds viewer.- Parameters:
viewer
- the viewer
-
getSelection
public ISelection getSelection()
- Specified by:
getSelection
in interfaceISelectionProvider
-
getViewerInFocus
public StructuredViewer getViewerInFocus()
Returns the viewer in focus or null if no viewer has the focus- Returns:
- returns the current viewer in focus
-
removeSelectionChangedListener
public void removeSelectionChangedListener(ISelectionChangedListener listener)
- Specified by:
removeSelectionChangedListener
in interfaceISelectionProvider
-
setFocusedViewer
public void setFocusedViewer(StructuredViewer viewer)
Sets focused viewer.- Parameters:
viewer
- the viewer
-
setSelection
public void setSelection(ISelection selection)
- Specified by:
setSelection
in interfaceISelectionProvider
-
-