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, setActionBars
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose, setActionBars
public ContentOutlinePage(EditPartViewer viewer)
viewer
- the viewerpublic 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()
public void setSelection(ISelection selection)
setSelection
in interface ISelectionProvider
ISelectionProvider.setSelection(org.eclipse.jface.viewers.ISelection)
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.