public class PaletteView extends PageBookView
PageBookView.PageRec, PageBookView.SelectionProvider
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
The ID for this view.
|
PROP_TITLE
Constructor and Description |
---|
PaletteView() |
Modifier and Type | Method and Description |
---|---|
protected IPage |
createDefaultPage(PageBook book)
Creates a default page saying that a palette is not available.
|
void |
createPartControl(Composite parent)
Add a perspective listener so the palette view can be updated when the
perspective is switched.
|
void |
dispose()
Remove the perspective listener.
|
protected PageBookView.PageRec |
doCreatePage(IWorkbenchPart part) |
protected void |
doDestroyPage(IWorkbenchPart part,
PageBookView.PageRec rec) |
protected IWorkbenchPart |
getBootstrapPart()
The view shows the palette associated with the active editor.
|
protected boolean |
isImportant(IWorkbenchPart part)
Only editors in the same perspective as the view are important.
|
doesPageExist, getAdapter, getCurrentContributingPart, getCurrentPage, getDefaultPage, getPageBook, getPageRec, getPageRec, getPageSite, getSelectionProvider, getViewAdapter, init, initPage, partActivated, partBroughtToTop, partClosed, partDeactivated, partHidden, partOpened, partVisible, setFocus, showPageRec
checkSite, getViewSite, init, saveState, setContentDescription, setInitializationData, setPartName
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
public static final java.lang.String ID
protected IPage createDefaultPage(PageBook book)
createDefaultPage
in class PageBookView
PageBookView.createDefaultPage(org.eclipse.ui.part.PageBook)
public void createPartControl(Composite parent)
createPartControl
in interface IWorkbenchPart
createPartControl
in class PageBookView
IWorkbenchPart.createPartControl(org.eclipse.swt.widgets.Composite)
public void dispose()
dispose
in interface IWorkbenchPart
dispose
in class PageBookView
IWorkbenchPart.dispose()
protected PageBookView.PageRec doCreatePage(IWorkbenchPart part)
doCreatePage
in class PageBookView
PageBookView.doCreatePage(org.eclipse.ui.IWorkbenchPart)
protected void doDestroyPage(IWorkbenchPart part, PageBookView.PageRec rec)
doDestroyPage
in class PageBookView
PageBookView.doDestroyPage(org.eclipse.ui.IWorkbenchPart,
org.eclipse.ui.part.PageBookView.PageRec)
protected IWorkbenchPart getBootstrapPart()
getBootstrapPart
in class PageBookView
PageBookView.getBootstrapPart()
protected boolean isImportant(IWorkbenchPart part)
isImportant
in class PageBookView
PageBookView.isImportant(org.eclipse.ui.IWorkbenchPart)
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.