org.dftproject.genesis.ui.views
Class SearchView

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.ui.part.WorkbenchPart
          extended by org.eclipse.ui.part.ViewPart
              extended by org.dftproject.genesis.ui.views.SearchView
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.IPersistable, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation

public class SearchView
extends org.eclipse.ui.part.ViewPart

SearchView allows the user to enter a search query and shows the results of the search query as the are discovered.


Field Summary
static java.lang.String ID
          The view ID.
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
SearchView()
           
 
Method Summary
protected  void addHit(Hit hit)
          Adds a search result to the list of search results.
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
           
protected  void createSearchBox(org.eclipse.swt.widgets.Composite parent)
          Creates the search box.
 void dispose()
           
 void setFocus()
           
protected  void startSearch()
          Start searching for the query entered in the search box.
protected  void stopSearch()
          Cancel the current search and stop receiving new search results.
 
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
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, 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.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

ID

public static final java.lang.String ID
The view ID.

See Also:
Constant Field Values
Constructor Detail

SearchView

public SearchView()
Method Detail

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.ui.IWorkbenchPart
Overrides:
dispose in class org.eclipse.ui.part.WorkbenchPart

createPartControl

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

createSearchBox

protected void createSearchBox(org.eclipse.swt.widgets.Composite parent)
Creates the search box.

Parameters:
parent - a composite

addHit

protected void addHit(Hit hit)
Adds a search result to the list of search results.

Parameters:
hit - a search result

setFocus

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

startSearch

protected void startSearch()
Start searching for the query entered in the search box.


stopSearch

protected void stopSearch()
Cancel the current search and stop receiving new search results.