com.ibm.jdg2e.view.simplemodel.tableview
Class LocationsView

java.lang.Object
  extended byorg.eclipse.ui.part.WorkbenchPart
      extended byorg.eclipse.ui.part.ViewPart
          extended bycom.ibm.jdg2e.view.simplemodel.tableview.LocationsView
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.jface.viewers.IDoubleClickListener, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.jface.viewers.ISelectionChangedListener, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2

public class LocationsView
extends org.eclipse.ui.part.ViewPart
implements org.eclipse.jface.viewers.ISelectionChangedListener, org.eclipse.jface.viewers.IDoubleClickListener

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

LocationsView

public LocationsView()
The constructor.

Method Detail

createPartControl

public void createPartControl(org.eclipse.swt.widgets.Composite parent)
Create user interface for the view part. This is viewer based so it includes the viewer structure and add-on function.

Specified by:
createPartControl in interface org.eclipse.ui.IWorkbenchPart
See Also:
IWorkbenchPart.createPartControl(org.eclipse.swt.widgets.Composite)

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.ui.IWorkbenchPart
See Also:
IWorkbenchPart.dispose()

doubleClick

public void doubleClick(org.eclipse.jface.viewers.DoubleClickEvent event)
Open Properties dialog and touch selection to send update to Properties view.

Specified by:
doubleClick in interface org.eclipse.jface.viewers.IDoubleClickListener
See Also:
IDoubleClickListener.doubleClick(org.eclipse.jface.viewers.DoubleClickEvent)

selectionChanged

public void selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
Specified by:
selectionChanged in interface org.eclipse.jface.viewers.ISelectionChangedListener
See Also:
ISelectionChangedListener.selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)

setFocus

public void setFocus()
Passing the focus request to the viewer's control.

Specified by:
setFocus in interface org.eclipse.ui.IWorkbenchPart
See Also:
IWorkbenchPart.setFocus()