Class AnimationUtil.FadeJob
- All Implemented Interfaces:
Comparable<org.eclipse.core.internal.jobs.InternalJob>
,IAdaptable
- Enclosing class:
- AnimationUtil
-
Field Summary
Fields inherited from class org.eclipse.core.runtime.jobs.Job
ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITING
Fields inherited from class org.eclipse.core.internal.jobs.InternalJob
manager
-
Constructor Summary
ConstructorDescriptionFadeJob
(Shell shell, int increment, long delay, AnimationUtil.IFadeListener fadeListener) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancelAndWait
(boolean setAlpha) protected void
A hook method indicating that this job is running andJob.cancel()
is being called for the first time.protected IStatus
run
(IProgressMonitor monitor) Executes this job.Methods inherited from class org.eclipse.core.runtime.jobs.Job
addJobChangeListener, belongsTo, cancel, create, create, createSystem, createSystem, done, getJobGroup, getJobManager, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, join, removeJobChangeListener, schedule, schedule, setJobGroup, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, shouldRun, shouldSchedule, sleep, toString, wakeUp, wakeUp, yieldRule
Methods inherited from class org.eclipse.core.internal.jobs.InternalJob
compareTo
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
-
Constructor Details
-
FadeJob
-
-
Method Details
-
canceling
protected void canceling()Description copied from class:Job
A hook method indicating that this job is running andJob.cancel()
is being called for the first time.Subclasses may override this method to perform additional work when a cancelation request is made. This default implementation does nothing.
-
cancelAndWait
public void cancelAndWait(boolean setAlpha) -
run
Description copied from class:Job
Executes this job. Returns the result of the execution.The provided monitor can be used to report progress and respond to cancellation. If the progress monitor has been canceled, the job should finish its execution at the earliest convenience and return a result status of severity
IStatus.CANCEL
. The singleton cancel statusStatus.CANCEL_STATUS
can be used for this purpose. The monitor is only valid for the duration of the invocation of this method.This method must not be called directly by clients. Clients should call
schedule
, which will in turn cause this method to be called.Jobs can optionally finish their execution asynchronously (in another thread) by returning a result status of
Job.ASYNC_FINISH
. Jobs that finish asynchronously must specify the execution thread by callingsetThread
, and must indicate when they are finished by calling the methoddone
.
-