org.eclipse.mylar.internal.java.search
Class AbstractJavaRelationProvider.JavaSearchOperation

java.lang.Object
  extended by org.eclipse.jdt.internal.ui.search.JavaSearchQuery
      extended by org.eclipse.mylar.internal.java.search.AbstractJavaRelationProvider.JavaSearchOperation
All Implemented Interfaces:
org.eclipse.mylar.internal.context.core.IMylarSearchOperation, org.eclipse.search.ui.ISearchQuery
Enclosing class:
AbstractJavaRelationProvider

protected static class AbstractJavaRelationProvider.JavaSearchOperation
extends org.eclipse.jdt.internal.ui.search.JavaSearchQuery
implements org.eclipse.mylar.internal.context.core.IMylarSearchOperation


Field Summary
private  java.util.List<org.eclipse.mylar.internal.context.core.IActiveSearchListener> listeners
          List of listeners wanting to know about the searches
private  org.eclipse.search.ui.ISearchResult result
           
 
Constructor Summary
AbstractJavaRelationProvider.JavaSearchOperation(org.eclipse.jdt.ui.search.QuerySpecification data)
          Constructor
 
Method Summary
 void addListener(org.eclipse.mylar.internal.context.core.IActiveSearchListener l)
          Add a listener for when the bugzilla search is completed
 org.eclipse.search.ui.ISearchResult getSearchResult()
           
 void notifySearchCompleted(java.util.List<java.lang.Object> l)
          Notify all of the listeners that the bugzilla search is completed
 void removeListener(org.eclipse.mylar.internal.context.core.IActiveSearchListener l)
          Remove a listener for when the bugzilla search is completed
 org.eclipse.core.runtime.IStatus run(org.eclipse.core.runtime.IProgressMonitor monitor)
           
 
Methods inherited from class org.eclipse.jdt.internal.ui.search.JavaSearchQuery
canRerun, canRunInBackground, getLabel, getResultLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

result

private org.eclipse.search.ui.ISearchResult result

listeners

private java.util.List<org.eclipse.mylar.internal.context.core.IActiveSearchListener> listeners
List of listeners wanting to know about the searches

Constructor Detail

AbstractJavaRelationProvider.JavaSearchOperation

public AbstractJavaRelationProvider.JavaSearchOperation(org.eclipse.jdt.ui.search.QuerySpecification data)
Constructor

Parameters:
data -
Method Detail

getSearchResult

public org.eclipse.search.ui.ISearchResult getSearchResult()
Specified by:
getSearchResult in interface org.eclipse.search.ui.ISearchQuery
Overrides:
getSearchResult in class org.eclipse.jdt.internal.ui.search.JavaSearchQuery

run

public org.eclipse.core.runtime.IStatus run(org.eclipse.core.runtime.IProgressMonitor monitor)
Specified by:
run in interface org.eclipse.mylar.internal.context.core.IMylarSearchOperation
Specified by:
run in interface org.eclipse.search.ui.ISearchQuery
Overrides:
run in class org.eclipse.jdt.internal.ui.search.JavaSearchQuery

addListener

public void addListener(org.eclipse.mylar.internal.context.core.IActiveSearchListener l)
Add a listener for when the bugzilla search is completed

Specified by:
addListener in interface org.eclipse.mylar.internal.context.core.IMylarSearchOperation
Parameters:
l - The listener to add

removeListener

public void removeListener(org.eclipse.mylar.internal.context.core.IActiveSearchListener l)
Remove a listener for when the bugzilla search is completed

Specified by:
removeListener in interface org.eclipse.mylar.internal.context.core.IMylarSearchOperation
Parameters:
l - The listener to remove

notifySearchCompleted

public void notifySearchCompleted(java.util.List<java.lang.Object> l)
Notify all of the listeners that the bugzilla search is completed

Parameters:
doiList - A list of BugzillaSearchHitDoiInfo
member - The IMember that the search was performed on