|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.PlatformObject
org.eclipse.core.internal.jobs.InternalJob
org.eclipse.core.runtime.jobs.Job
org.eclipse.core.internal.resources.InternalWorkspaceJob
org.eclipse.core.resources.WorkspaceJob
org.eclipse.core.internal.refresh.RefreshJob
public class RefreshJob
The RefreshJob
class maintains a list of resources that
need to be refreshed, and periodically schedules itself to perform the
refreshes in the background.
Field Summary |
---|
Fields inherited from class org.eclipse.core.runtime.jobs.Job |
---|
ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITING |
Constructor Summary | |
---|---|
RefreshJob()
|
Method Summary | |
---|---|
boolean |
belongsTo(java.lang.Object family)
|
PrefixPool |
getPathPrefixHistory()
Returns the path prefixes visited by this job so far. |
PrefixPool |
getRootPathHistory()
Returns the root paths visited by this job so far. |
void |
refresh(IResource resource)
|
org.eclipse.core.runtime.IStatus |
runInWorkspace(org.eclipse.core.runtime.IProgressMonitor monitor)
Runs the operation, reporting progress to and accepting cancelation requests from the given progress monitor. |
boolean |
shouldRun()
|
void |
start()
Starts the refresh job |
void |
stop()
Stops the refresh job |
Methods inherited from class org.eclipse.core.internal.resources.InternalWorkspaceJob |
---|
run |
Methods inherited from class org.eclipse.core.runtime.jobs.Job |
---|
addJobChangeListener, cancel, done, getJobManager, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, removeJobChangeListener, schedule, schedule, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, shouldSchedule, sleep, wakeUp, wakeUp |
Methods inherited from class org.eclipse.core.internal.jobs.InternalJob |
---|
compareTo, toString |
Methods inherited from class org.eclipse.core.runtime.PlatformObject |
---|
getAdapter |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Constructor Detail |
---|
public RefreshJob()
Method Detail |
---|
public boolean belongsTo(java.lang.Object family)
belongsTo
in class org.eclipse.core.runtime.jobs.Job
public PrefixPool getPathPrefixHistory()
public PrefixPool getRootPathHistory()
public void refresh(IResource resource)
public org.eclipse.core.runtime.IStatus runInWorkspace(org.eclipse.core.runtime.IProgressMonitor monitor)
WorkspaceJob
Implementors of this method should check the progress monitor
for cancelation when it is safe and appropriate to do so. The cancelation
request should be propagated to the caller by throwing
OperationCanceledException
.
runInWorkspace
in class WorkspaceJob
monitor
- a progress monitor, or null
if progress
reporting and cancelation are not desired
public boolean shouldRun()
shouldRun
in class org.eclipse.core.runtime.jobs.Job
public void start()
public void stop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |