org.eclipse.xtend.shared.ui.editor.search.query
Class XtendXpandSearchResult

java.lang.Object
  extended by org.eclipse.search.ui.text.AbstractTextSearchResult
      extended by org.eclipse.xtend.shared.ui.editor.search.query.XtendXpandSearchResult
All Implemented Interfaces:
org.eclipse.search.ui.ISearchResult, org.eclipse.search.ui.text.IEditorMatchAdapter, org.eclipse.search.ui.text.IFileMatchAdapter

public class XtendXpandSearchResult
extends org.eclipse.search.ui.text.AbstractTextSearchResult
implements org.eclipse.search.ui.text.IEditorMatchAdapter, org.eclipse.search.ui.text.IFileMatchAdapter

XtendXpandSearchResult contains a list of text-based matches for a given query.

Author:
Peter Friese

Constructor Summary
XtendXpandSearchResult(XtendXpandSearchQuery query)
          Creates a new XtendXpandSearchResult.
 
Method Summary
 org.eclipse.search.ui.text.Match[] computeContainedMatches(org.eclipse.search.ui.text.AbstractTextSearchResult result, org.eclipse.ui.IEditorPart editor)
          
 org.eclipse.search.ui.text.Match[] computeContainedMatches(org.eclipse.search.ui.text.AbstractTextSearchResult result, org.eclipse.core.resources.IFile file)
          
 org.eclipse.search.ui.text.IEditorMatchAdapter getEditorMatchAdapter()
          
 org.eclipse.core.resources.IFile getFile(java.lang.Object element)
          
 org.eclipse.search.ui.text.IFileMatchAdapter getFileMatchAdapter()
          
 org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
          
 java.lang.String getLabel()
          
 org.eclipse.search.ui.ISearchQuery getQuery()
          
 java.lang.String getTooltip()
          
 boolean isShownInEditor(org.eclipse.search.ui.text.Match match, org.eclipse.ui.IEditorPart editor)
          
 
Methods inherited from class org.eclipse.search.ui.text.AbstractTextSearchResult
addListener, addMatch, addMatches, fireChange, getActiveMatchFilters, getAllMatchFilters, getElements, getMatchCount, getMatchCount, getMatches, removeAll, removeListener, removeMatch, removeMatches, setActiveMatchFilters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XtendXpandSearchResult

public XtendXpandSearchResult(XtendXpandSearchQuery query)
Creates a new XtendXpandSearchResult.

Parameters:
query - The query that yielded 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()

Specified by:
getFileMatchAdapter in class org.eclipse.search.ui.text.AbstractTextSearchResult

getImageDescriptor

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

Specified by:
getImageDescriptor in interface org.eclipse.search.ui.ISearchResult

getLabel

public java.lang.String getLabel()

Specified by:
getLabel in interface org.eclipse.search.ui.ISearchResult

getQuery

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

Specified by:
getQuery in interface org.eclipse.search.ui.ISearchResult

getTooltip

public java.lang.String getTooltip()

Specified by:
getTooltip in interface org.eclipse.search.ui.ISearchResult

computeContainedMatches

public org.eclipse.search.ui.text.Match[] computeContainedMatches(org.eclipse.search.ui.text.AbstractTextSearchResult result,
                                                                  org.eclipse.ui.IEditorPart editor)

Specified by:
computeContainedMatches in interface org.eclipse.search.ui.text.IEditorMatchAdapter

isShownInEditor

public boolean isShownInEditor(org.eclipse.search.ui.text.Match match,
                               org.eclipse.ui.IEditorPart editor)

Specified by:
isShownInEditor in interface org.eclipse.search.ui.text.IEditorMatchAdapter

computeContainedMatches

public org.eclipse.search.ui.text.Match[] computeContainedMatches(org.eclipse.search.ui.text.AbstractTextSearchResult result,
                                                                  org.eclipse.core.resources.IFile file)

Specified by:
computeContainedMatches in interface org.eclipse.search.ui.text.IFileMatchAdapter

getFile

public org.eclipse.core.resources.IFile getFile(java.lang.Object element)

Specified by:
getFile in interface org.eclipse.search.ui.text.IFileMatchAdapter