|
Eclipse GEF 3.8.0.201206112118 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ui.part.Page
org.eclipse.gef.ui.parts.ContentOutlinePage
public class 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 viewer| Method Detail |
|---|
public void addSelectionChangedListener(ISelectionChangedListener listener)
addSelectionChangedListener in interface ISelectionProviderISelectionProvider.addSelectionChangedListener(ISelectionChangedListener)public void createControl(Composite parent)
createControl in interface IPagecreateControl in class PageIPage.createControl(org.eclipse.swt.widgets.Composite)public Control getControl()
getControl in interface IPagegetControl in class PageIPage.getControl()public ISelection getSelection()
getSelection in interface ISelectionProviderISelectionProvider.getSelection()protected EditPartViewer getViewer()
public void removeSelectionChangedListener(ISelectionChangedListener listener)
removeSelectionChangedListener in interface ISelectionProviderISelectionProvider.removeSelectionChangedListener(ISelectionChangedListener)public void setFocus()
setFocus in interface IPagesetFocus in class Pagepublic void setSelection(ISelection selection)
setSelection in interface ISelectionProviderISelectionProvider.setSelection(org.eclipse.jface.viewers.ISelection)
|
Eclipse GEF 3.8.0.201206112118 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||