IPageLayout.ID_BOOKMARKS
is an ExtendedMarkersView
.
public class BookmarkNavigator extends ViewPart
PROP_TITLE
Constructor and Description |
---|
BookmarkNavigator()
Deprecated.
Creates the bookmarks view.
|
Modifier and Type | Method and Description |
---|---|
void |
createPartControl(Composite parent)
Deprecated.
Creates the SWT controls for this workbench part.
|
void |
dispose()
Deprecated.
The
WorkbenchPart implementation of this
IWorkbenchPart method disposes the title image
loaded by setInitializationData . |
Object |
getAdapter(Class adapter)
Deprecated.
Returns an object which is an instance of the given class
associated with this object.
|
void |
init(IViewSite site,
IMemento memento)
Deprecated.
Initializes this view with the given view site.
|
protected void |
initDragAndDrop()
Deprecated.
Adds drag and drop support to the bookmark navigator.
|
void |
saveState(IMemento memento)
Deprecated.
Saves the object state within a memento.
|
void |
setFocus()
Deprecated.
Asks this part to take focus within the workbench.
|
checkSite, getViewSite, init, 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 BookmarkNavigator()
public void createPartControl(Composite parent)
IWorkbenchPart
Clients should not call this method (the workbench calls this method when it needs to, which may be never).
For implementors this is a multi-step process:
IActionBars
.ISelectionService
(optional). createPartControl
in interface IWorkbenchPart
createPartControl
in class WorkbenchPart
parent
- the parent controlpublic void dispose()
WorkbenchPart
WorkbenchPart
implementation of this
IWorkbenchPart
method disposes the title image
loaded by setInitializationData
. Subclasses may extend.dispose
in interface IWorkbenchPart
dispose
in class WorkbenchPart
public Object getAdapter(Class adapter)
WorkbenchPart
null
if
no such object can be found.
Subclasses may override this method (however, if they do so, they
should invoke the method on their superclass to ensure that the
Platform's adapter manager is consulted).getAdapter
in interface IAdaptable
getAdapter
in class WorkbenchPart
adapter
- the adapter class to look upnull
if this object does not
have an adapter for the given classpublic void init(IViewSite site, IMemento memento) throws PartInitException
IViewPart
This method is automatically called by the workbench shortly after the part is instantiated. It marks the start of the views's lifecycle. Clients must not call this method.
init
in interface IViewPart
init
in class ViewPart
site
- the view sitememento
- the IViewPart state or null if there is no previous saved statePartInitException
- if this view was not initialized successfullyprotected void initDragAndDrop()
public void saveState(IMemento memento)
IViewPart
public void setFocus()
IWorkbenchPart
Clients should not call this method (the workbench calls this method at
appropriate times). To have the workbench activate a part, use
IWorkbenchPage.activate(IWorkbenchPart) instead
.
setFocus
in interface IWorkbenchPart
setFocus
in class WorkbenchPart
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.