Package org.eclipse.gef.mvc.fx.ui.parts
Class ContentSelectionProvider
java.lang.Object
org.eclipse.gef.mvc.fx.ui.parts.ContentSelectionProvider
- All Implemented Interfaces:
ISelectionProvider,IDisposable
The
ContentSelectionProvider is an ISelectionProvider
implementation that manages the un-/registration of listeners and their
execution upon selection changes.-
Constructor Summary
ConstructorsConstructorDescriptionContentSelectionProvider(IViewer viewer) Creates a newContentSelectionProviderfor the givenSelectionModel. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddispose()protected IViewerReturns theIViewerthisContentSelectionProvideris bound to.voidvoidsetSelection(ISelection selection)
-
Constructor Details
-
ContentSelectionProvider
Creates a newContentSelectionProviderfor the givenSelectionModel.- Parameters:
viewer- TheIViewerto associate thisContentSelectionProviderto.
-
-
Method Details
-
addSelectionChangedListener
- Specified by:
addSelectionChangedListenerin interfaceISelectionProvider
-
dispose
public void dispose()- Specified by:
disposein interfaceIDisposable
-
getSelection
- Specified by:
getSelectionin interfaceISelectionProvider
-
getViewer
Returns theIViewerthisContentSelectionProvideris bound to.- Returns:
- The
IViewerthisContentSelectionProvideris bound to.
-
removeSelectionChangedListener
- Specified by:
removeSelectionChangedListenerin interfaceISelectionProvider
-
setSelection
- Specified by:
setSelectionin interfaceISelectionProvider
-