org.eclipse.mylar.internal.tasks.ui.search
Class RepositorySearchResult

java.lang.Object
  extended by org.eclipse.search.ui.text.AbstractTextSearchResult
      extended by org.eclipse.mylar.internal.tasks.ui.search.RepositorySearchResult
All Implemented Interfaces:
org.eclipse.search.ui.ISearchResult

public class RepositorySearchResult
extends org.eclipse.search.ui.text.AbstractTextSearchResult

The collection of all the matches.

Author:
Rob Elves (moved into task.ui)
See Also:
AbstractTextSearchResult

Field Summary
private  org.eclipse.search.ui.ISearchQuery repositoryQuery
          The query producing this result.
 
Constructor Summary
RepositorySearchResult(org.eclipse.search.ui.ISearchQuery query)
          Constructor for RepositorySearchResult class.
 
Method Summary
 org.eclipse.search.ui.text.IEditorMatchAdapter getEditorMatchAdapter()
           
 org.eclipse.search.ui.text.IFileMatchAdapter getFileMatchAdapter()
          This function always returns null, as the matches for this implementation of AbstractTextSearchResult never contain files.
 org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
           
 java.lang.String getLabel()
           
protected  java.lang.String getPluralLabel()
          Get the plural label for the number of results
 org.eclipse.search.ui.ISearchQuery getQuery()
           
protected  java.lang.String getSingularLabel()
          Get the singular label for the number of results
 java.lang.String getTooltip()
           
 
Methods inherited from class org.eclipse.search.ui.text.AbstractTextSearchResult
addListener, addMatch, addMatches, fireChange, getElements, getMatchCount, getMatchCount, getMatches, removeAll, removeListener, removeMatch, removeMatches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

repositoryQuery

private org.eclipse.search.ui.ISearchQuery repositoryQuery
The query producing this result.

Constructor Detail

RepositorySearchResult

public RepositorySearchResult(org.eclipse.search.ui.ISearchQuery query)
Constructor for RepositorySearchResult class.

Parameters:
query - AbstractRepositorySearchQuery that is producing this result.
Method Detail

getEditorMatchAdapter

public org.eclipse.search.ui.text.IEditorMatchAdapter getEditorMatchAdapter()
Specified by:
getEditorMatchAdapter in class org.eclipse.search.ui.text.AbstractTextSearchResult

getFileMatchAdapter

public org.eclipse.search.ui.text.IFileMatchAdapter getFileMatchAdapter()
This function always returns null, as the matches for this implementation of AbstractTextSearchResult never contain files.

Specified by:
getFileMatchAdapter in class org.eclipse.search.ui.text.AbstractTextSearchResult
See Also:
AbstractTextSearchResult.getFileMatchAdapter()

getLabel

public java.lang.String getLabel()

getSingularLabel

protected java.lang.String getSingularLabel()
Get the singular label for the number of results

Returns:
The singular label

getPluralLabel

protected java.lang.String getPluralLabel()
Get the plural label for the number of results

Returns:
The plural label

getTooltip

public java.lang.String getTooltip()

getImageDescriptor

public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()

getQuery

public org.eclipse.search.ui.ISearchQuery getQuery()