|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtext.ui.editor.findrefs.ReferenceQuery
public class ReferenceQuery
Field Summary | |
---|---|
protected EditorResourceAccess |
localContextProvider
|
Constructor Summary | |
---|---|
ReferenceQuery()
|
Method Summary | |
---|---|
boolean |
canRerun()
Returns whether the query can be run more than once. |
boolean |
canRunInBackground()
Returns whether this query can be run in the background. |
protected ReferenceSearchResult |
createSearchResult()
|
java.lang.String |
getLabel()
Returns a user readable label for this query. |
org.eclipse.search.ui.ISearchResult |
getSearchResult()
Returns the search result associated with this query. |
void |
init(IReferenceFinder.IQueryData queryData)
|
org.eclipse.core.runtime.IStatus |
run(org.eclipse.core.runtime.IProgressMonitor monitor)
This is the method that actually does the work, i.e. finds the results of the search query. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@Inject protected EditorResourceAccess localContextProvider
Constructor Detail |
---|
public ReferenceQuery()
Method Detail |
---|
public void init(IReferenceFinder.IQueryData queryData)
public boolean canRerun()
org.eclipse.search.ui.ISearchQuery
false
.
canRerun
in interface org.eclipse.search.ui.ISearchQuery
public boolean canRunInBackground()
org.eclipse.search.ui.ISearchQuery
canRunInBackground
in interface org.eclipse.search.ui.ISearchQuery
public java.lang.String getLabel()
org.eclipse.search.ui.ISearchQuery
Job
name if this query is executed in
the background. Note that progress notification (for example, the number
of matches found) should be done via the progress monitor passed into the
run(IProgressMonitor)
method
getLabel
in interface org.eclipse.search.ui.ISearchQuery
public org.eclipse.search.ui.ISearchResult getSearchResult()
org.eclipse.search.ui.ISearchQuery
getSearchResult
in interface org.eclipse.search.ui.ISearchQuery
public org.eclipse.core.runtime.IStatus run(org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.OperationCanceledException
org.eclipse.search.ui.ISearchQuery
run
in interface org.eclipse.search.ui.ISearchQuery
monitor
- the progress monitor to be used
org.eclipse.core.runtime.OperationCanceledException
- Thrown when the search query has been canceled.protected ReferenceSearchResult createSearchResult()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |