org.eclipse.ocl.examples.emf.validation.validity.ui.view
Class ValidityView.ChangeSelectionJob

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.core.internal.jobs.InternalJob
          extended by org.eclipse.core.runtime.jobs.Job
              extended by org.eclipse.ocl.examples.emf.validation.validity.ui.view.ValidityView.ChangeSelectionJob
All Implemented Interfaces:
java.lang.Comparable, org.eclipse.core.runtime.IAdaptable
Enclosing class:
ValidityView

protected class ValidityView.ChangeSelectionJob
extends org.eclipse.core.runtime.jobs.Job

The ChangeSelectionJob performs the work for a setSelection() without clogging up the UI. Multiple chnages are maintained in a linked list so that the earlier jobs complete cancelation before another starts.


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
protected ValidityView.ChangeSelectionJob(org.eclipse.emf.common.notify.Notifier newSelection)
           
 
Method Summary
 void cancelThenSchedule(ValidityView.ChangeSelectionJob newJob)
           
protected  org.eclipse.core.runtime.IStatus run(org.eclipse.core.runtime.IProgressMonitor monitor)
           
 
Methods inherited from class org.eclipse.core.runtime.jobs.Job
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
 
Methods inherited from class org.eclipse.core.internal.jobs.InternalJob
compareTo
 
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

ValidityView.ChangeSelectionJob

protected ValidityView.ChangeSelectionJob(@Nullable
                                          org.eclipse.emf.common.notify.Notifier newSelection)
Method Detail

cancelThenSchedule

public void cancelThenSchedule(@NonNull
                               ValidityView.ChangeSelectionJob newJob)

run

protected org.eclipse.core.runtime.IStatus run(org.eclipse.core.runtime.IProgressMonitor monitor)
Specified by:
run in class org.eclipse.core.runtime.jobs.Job