|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.ui.part.Page | +--org.eclipse.gef.ui.parts.ContentOutlinePage
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 | |
ContentOutlinePage(EditPartViewer viewer)
Constructs a ContentOutlinePage for the given viewer. |
Method Summary | |
void |
addSelectionChangedListener(ISelectionChangedListener listener)
|
void |
createControl(Composite parent)
Forwards the createControl request to the editpartviewer. |
Control |
getControl()
|
ISelection |
getSelection()
Forwards selection request to the viewer. |
protected EditPartViewer |
getViewer()
Returns the EditPartViewer |
void |
removeSelectionChangedListener(ISelectionChangedListener listener)
|
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 Detail |
public ContentOutlinePage(EditPartViewer viewer)
viewer
- the viewerMethod Detail |
public void addSelectionChangedListener(ISelectionChangedListener listener)
addSelectionChangedListener
in interface ISelectionProvider
ISelectionProvider.addSelectionChangedListener(ISelectionChangedListener)
public void createControl(Composite parent)
createControl
in interface IPage
createControl
in class Page
IPage.createControl(org.eclipse.swt.widgets.Composite)
public Control getControl()
getControl
in interface IPage
getControl
in class Page
IPage.getControl()
public ISelection getSelection()
getSelection
in interface ISelectionProvider
ISelectionProvider.getSelection()
protected EditPartViewer getViewer()
public void removeSelectionChangedListener(ISelectionChangedListener listener)
removeSelectionChangedListener
in interface ISelectionProvider
ISelectionProvider.removeSelectionChangedListener(ISelectionChangedListener)
public void setFocus()
setFocus
in interface IPage
setFocus
in class Page
public void setSelection(ISelection selection)
setSelection
in interface ISelectionProvider
ISelectionProvider.setSelection(org.eclipse.jface.viewers.ISelection)
|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |