java.lang.Object
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
com.port80.draw2d.imageviewer.views.ImageIndexView
- All Implemented Interfaces:
- org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2
- public class ImageIndexView
- extends org.eclipse.ui.part.ViewPart
This sample class demonstrates how to plug-in a new
workbench view. The view shows data obtained from the
model. The sample creates a dummy model on the fly,
but a real implementation would connect to the model
available either in this or another plug-in (e.g. the workspace).
The view is connected to the model using a content provider.
The view uses a label provider to define how model
objects should be presented in the view. Each
view can present the same model objects using
different labels and icons, if needed. Alternatively,
a single label provider can be shared between views
in order to ensure that objects of the same type are
presented in the same way everywhere.
| Fields inherited from class org.eclipse.ui.part.ViewPart |
|
| Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
addPropertyListener, dispose, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getPartName, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
drillDownAdapter
private org.eclipse.ui.part.DrillDownAdapter drillDownAdapter
action1
private org.eclipse.jface.action.Action action1
action2
private org.eclipse.jface.action.Action action2
viewer
org.eclipse.jface.viewers.TreeViewer viewer
doubleClickAction
org.eclipse.jface.action.Action doubleClickAction
ImageIndexView
public ImageIndexView()
- The constructor.
createPartControl
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
- This is a callback that will allow us
to create the viewer and initialize it.
hookContextMenu
private void hookContextMenu()
contributeToActionBars
private void contributeToActionBars()
fillLocalPullDown
private void fillLocalPullDown(org.eclipse.jface.action.IMenuManager manager)
fillContextMenu
void fillContextMenu(org.eclipse.jface.action.IMenuManager manager)
fillLocalToolBar
private void fillLocalToolBar(org.eclipse.jface.action.IToolBarManager manager)
makeActions
private void makeActions()
hookDoubleClickAction
private void hookDoubleClickAction()
showMessage
void showMessage(java.lang.String message)
setFocus
public void setFocus()
- Passing the focus request to the viewer's control.