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 SummaryConstructorsConstructorDescriptionContentOutlinePage(EditPartViewer viewer) Constructs a ContentOutlinePage for the given viewer.
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidcreateControl(Composite parent) Forwards the createControl request to the editpartviewer.Forwards selection request to the viewer.protected EditPartViewerReturns the EditPartViewervoidvoidsetFocus()Sets focus to a part in the page.voidsetSelection(ISelection selection) Methods inherited from class org.eclipse.ui.part.Pagedispose, getSite, init, makeContributions, setActionBarsMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.ui.part.IPagedispose, setActionBars
- 
Constructor Details- 
ContentOutlinePageConstructs a ContentOutlinePage for the given viewer.- Parameters:
- viewer- the viewer
 
 
- 
- 
Method Details- 
addSelectionChangedListener- Specified by:
- addSelectionChangedListenerin interface- ISelectionProvider
- See Also:
 
- 
createControlForwards the createControl request to the editpartviewer.- Specified by:
- createControlin interface- IPage
- Specified by:
- createControlin class- Page
- See Also:
 
- 
getControl- Specified by:
- getControlin interface- IPage
- Specified by:
- getControlin class- Page
- See Also:
 
- 
getSelectionForwards selection request to the viewer.- Specified by:
- getSelectionin interface- ISelectionProvider
- See Also:
 
- 
getViewerReturns the EditPartViewer- Returns:
- the viewer
 
- 
removeSelectionChangedListener- Specified by:
- removeSelectionChangedListenerin interface- ISelectionProvider
- See Also:
 
- 
setFocuspublic void setFocus()Sets focus to a part in the page.
- 
setSelection- Specified by:
- setSelectionin interface- ISelectionProvider
- See Also:
 
 
-