uk.ac.kcl.cch.jb.pliny.views
Class NoteSearchView

java.lang.Object
  extended byorg.eclipse.core.commands.common.EventManager
      extended byorg.eclipse.ui.part.WorkbenchPart
          extended byorg.eclipse.ui.part.ViewPart
              extended byuk.ac.kcl.cch.jb.pliny.views.NoteSearchView
All Implemented Interfaces:
EventListener, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.IPersistable, IResourceTreeView, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.part.IWorkbenchPartOrientation, PropertyChangeListener

public class NoteSearchView
extends org.eclipse.ui.part.ViewPart
implements IResourceTreeView, PropertyChangeListener

the Eclipse ViewPart for Pliny's Note Search View.

Author:
John Bradley

Field Summary
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
NoteSearchView()
           
 
Method Summary
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
           
 void dispose()
           
 void doSearch()
           
 org.eclipse.gef.commands.CommandStack getCommandStack()
          returns the view's CommandStack.
 org.eclipse.jface.viewers.TreeViewer getMyViewer()
          return the main tree viewer that displays items in this View.
 Vector getSelectedObjectsToOpen()
          returns a Vector containing Pliny Model elements that are selected and ready to open in their own editors.
 Vector getSelectedResourceExplorerItems()
          returns a Vector containing instances of IResourceExplorerItems that are currently selected by the user.
 void propertyChange(PropertyChangeEvent arg0)
           
 void setFocus()
           
 
Methods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPropertyListener, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
 
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
 
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.IViewPart
getViewSite, init, init, saveState
 
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

NoteSearchView

public NoteSearchView()
Method Detail

getCommandStack

public org.eclipse.gef.commands.CommandStack getCommandStack()
Description copied from interface: IResourceTreeView
returns the view's CommandStack.

Specified by:
getCommandStack in interface IResourceTreeView
Returns:
CommandStack for the view.

dispose

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

createPartControl

public void createPartControl(org.eclipse.swt.widgets.Composite parent)
Specified by:
createPartControl in interface org.eclipse.ui.IWorkbenchPart

setFocus

public void setFocus()
Specified by:
setFocus in interface org.eclipse.ui.IWorkbenchPart

doSearch

public void doSearch()

getMyViewer

public org.eclipse.jface.viewers.TreeViewer getMyViewer()
Description copied from interface: IResourceTreeView
return the main tree viewer that displays items in this View.

Specified by:
getMyViewer in interface IResourceTreeView
Returns:
the main TreeViewer.

getSelectedResourceExplorerItems

public Vector getSelectedResourceExplorerItems()
Description copied from interface: IResourceTreeView
returns a Vector containing instances of IResourceExplorerItems that are currently selected by the user.

Specified by:
getSelectedResourceExplorerItems in interface IResourceTreeView
Returns:
a Vector of IResourceExplorerItems.

getSelectedObjectsToOpen

public Vector getSelectedObjectsToOpen()
Description copied from interface: IResourceTreeView
returns a Vector containing Pliny Model elements that are selected and ready to open in their own editors. This code needs to contain special handling code to take care of the special needs of items under the 'DisplayedIn' category.

Specified by:
getSelectedObjectsToOpen in interface IResourceTreeView
Returns:
Vector of Pliny Model elements

propertyChange

public void propertyChange(PropertyChangeEvent arg0)
Specified by:
propertyChange in interface PropertyChangeListener