Package com._1c.g5.v8.dt.dcs.ui
Class DcsSelectionProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.dcs.ui.DcsSelectionProvider
-
- All Implemented Interfaces:
IPostSelectionProvider
,ISelectionProvider
public class DcsSelectionProvider extends Object implements IPostSelectionProvider
A selection provider for view parts with more that one viewer. Tracks the focus of the viewers to provide the correct selection. This is a modified version of org.eclipse.jdt.internal.ui.viewsupport.SelectionProviderMediator
-
-
Constructor Summary
Constructors Constructor Description DcsSelectionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Object viewer)
Add viewervoid
addPostSelectionChangedListener(ISelectionChangedListener listener)
void
addSelectionChangedListener(ISelectionChangedListener listener)
ISelectionProvider
getActivePageViewer()
Get active page viewerISelection
getSelection()
void
removePostSelectionChangedListener(ISelectionChangedListener listener)
void
removeSelectionChangedListener(ISelectionChangedListener listener)
void
setActivePage(EditorPage page)
Set active pagevoid
setActivePageViewer(ISelectionProvider viewer)
Set active page viewervoid
setSelection(ISelection selection)
-
-
-
Method Detail
-
add
public void add(Object viewer)
Add viewer- Parameters:
viewer
- viewer
-
setActivePage
public void setActivePage(EditorPage page)
Set active page- Parameters:
page
- active page
-
setActivePageViewer
public void setActivePageViewer(ISelectionProvider viewer)
Set active page viewer- Parameters:
viewer
- active viewer
-
getActivePageViewer
public ISelectionProvider getActivePageViewer()
Get active page viewer- Returns:
- viewer, can be null
-
addSelectionChangedListener
public void addSelectionChangedListener(ISelectionChangedListener listener)
- Specified by:
addSelectionChangedListener
in interfaceISelectionProvider
-
removeSelectionChangedListener
public void removeSelectionChangedListener(ISelectionChangedListener listener)
- Specified by:
removeSelectionChangedListener
in interfaceISelectionProvider
-
addPostSelectionChangedListener
public void addPostSelectionChangedListener(ISelectionChangedListener listener)
- Specified by:
addPostSelectionChangedListener
in interfaceIPostSelectionProvider
-
removePostSelectionChangedListener
public void removePostSelectionChangedListener(ISelectionChangedListener listener)
- Specified by:
removePostSelectionChangedListener
in interfaceIPostSelectionProvider
-
getSelection
public ISelection getSelection()
- Specified by:
getSelection
in interfaceISelectionProvider
-
setSelection
public void setSelection(ISelection selection)
- Specified by:
setSelection
in interfaceISelectionProvider
-
-