java.lang.Objectorg.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
com.ibm.jdg2e.view.simplemodel.tableview.LocationsView
This sample class demonstrates how to plug-in a new workbench view. The view shows data obtained from the model. The sample access a model managed by another plug-in.
The view is connected to the model using a content provider and uses a label provider to define how the model objects will be presented in the view.
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
PROP_TITLE |
| Constructor Summary | |
|---|---|
LocationsView()
The constructor. |
|
| Method Summary | |
|---|---|
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
Create user interface for the view part. |
void |
dispose()
|
void |
doubleClick(org.eclipse.jface.viewers.DoubleClickEvent event)
Open Properties dialog and touch selection to send update to Properties view. |
void |
selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
|
void |
setFocus()
Passing the focus request to the viewer's control. |
| Methods inherited from class org.eclipse.ui.part.ViewPart |
|---|
getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName |
| Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
|---|
addPropertyListener, 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 |
| Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Constructor Detail |
public LocationsView()
| Method Detail |
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl in interface org.eclipse.ui.IWorkbenchPartIWorkbenchPart.createPartControl(org.eclipse.swt.widgets.Composite)public void dispose()
dispose in interface org.eclipse.ui.IWorkbenchPartIWorkbenchPart.dispose()public void doubleClick(org.eclipse.jface.viewers.DoubleClickEvent event)
doubleClick in interface org.eclipse.jface.viewers.IDoubleClickListenerIDoubleClickListener.doubleClick(org.eclipse.jface.viewers.DoubleClickEvent)public void selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
selectionChanged in interface org.eclipse.jface.viewers.ISelectionChangedListenerISelectionChangedListener.selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)public void setFocus()
setFocus in interface org.eclipse.ui.IWorkbenchPartIWorkbenchPart.setFocus()