Package org.eclipse.gef.ui.parts
Class ContentOutlinePage
java.lang.Object
org.eclipse.ui.part.Page
org.eclipse.gef.ui.parts.ContentOutlinePage
- All Implemented Interfaces:
ISelectionProvider
,IPage
,IPageBookViewPage
,IContentOutlinePage
A adapter for an outline page containing a single EditPartViewer. This class
handles selection processing and widget focus. There is no need to manage
viewer lifecycle. When
dispose()
is called in the superclass,
the EditPartViewer will receive widget dispose callback, and perform any
necessary cleanup. This class is just an adapter.-
Constructor Summary
ConstructorsConstructorDescriptionContentOutlinePage
(EditPartViewer viewer) Constructs a ContentOutlinePage for the given viewer. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
createControl
(Composite parent) Forwards the createControl request to the editpartviewer.Forwards selection request to the viewer.protected EditPartViewer
Returns the EditPartViewervoid
void
setFocus()
Sets focus to a part in the page.void
setSelection
(ISelection selection) Methods inherited from class org.eclipse.ui.part.Page
dispose, getSite, init, makeContributions, setActionBars
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.ui.part.IPage
dispose, setActionBars
-
Constructor Details
-
ContentOutlinePage
Constructs a ContentOutlinePage for the given viewer.- Parameters:
viewer
- the viewer
-
-
Method Details
-
addSelectionChangedListener
- Specified by:
addSelectionChangedListener
in interfaceISelectionProvider
- See Also:
-
createControl
Forwards the createControl request to the editpartviewer.- Specified by:
createControl
in interfaceIPage
- Specified by:
createControl
in classPage
- See Also:
-
getControl
- Specified by:
getControl
in interfaceIPage
- Specified by:
getControl
in classPage
- See Also:
-
getSelection
Forwards selection request to the viewer.- Specified by:
getSelection
in interfaceISelectionProvider
- See Also:
-
getViewer
Returns the EditPartViewer- Returns:
- the viewer
-
removeSelectionChangedListener
- Specified by:
removeSelectionChangedListener
in interfaceISelectionProvider
- See Also:
-
setFocus
public void setFocus()Sets focus to a part in the page. -
setSelection
- Specified by:
setSelection
in interfaceISelectionProvider
- See Also:
-