public class ContentOutlinePage extends Page implements IContentOutlinePage
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 and Description |
|---|
ContentOutlinePage(EditPartViewer viewer)
Constructs a ContentOutlinePage for the given viewer.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
dispose, getSite, init, makeContributions, setActionBarsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdispose, setActionBarspublic ContentOutlinePage(EditPartViewer viewer)
viewer - the viewerpublic 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()
public void setSelection(ISelection selection)
setSelection in interface ISelectionProviderISelectionProvider.setSelection(org.eclipse.jface.viewers.ISelection)Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.