public abstract class AbstractRequest extends Job
#Request.schedule()
it.
At any time, you can retrieve the current results filtered for a given
substring with getResultsFor(String)
. You should Job.cancel()
a job that you need no longer.Modifier and Type | Field and Description |
---|---|
protected String |
field |
protected String |
query |
Constructor and Description |
---|
AbstractRequest(String field,
String query)
Create a new request.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addAllProposals(Collection<String> proposals) |
protected void |
addProposal(String proposal) |
Iterable<String> |
getResultsFor(String query)
returns the currently available results of this job filtered for the
new query given as an argument.
|
boolean |
isApplicableFor(String query)
returns
true if this job is applicable for the given
query, i.e. |
protected abstract IStatus |
run(IProgressMonitor monitor) |
addJobChangeListener, belongsTo, cancel, canceling, create, done, getJobManager, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, removeJobChangeListener, schedule, schedule, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, shouldRun, shouldSchedule, sleep, toString, wakeUp, wakeUp, yieldRule
getAdapter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAdapter
public AbstractRequest(String field, String query)
Job.schedule()
it to let it
run.field
- the field to queryquery
- the substring to search forpublic boolean isApplicableFor(String query)
true
if this job is applicable for the given
query, i.e. if getResultsFor(query)
will return meaningful results.public Iterable<String> getResultsFor(String query)
isApplicableFor(String)
protected void addProposal(String proposal)
protected void addAllProposals(Collection<String> proposals)
protected abstract IStatus run(IProgressMonitor monitor)