UML Modeling Layer

com.ibm.xtools.uml.ui.elementselection
Class UMLElementSelectionServiceJob

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.gmf.runtime.common.ui.services.elementselection.ElementSelectionServiceJob
                  extended by com.ibm.xtools.uml.ui.elementselection.UMLElementSelectionServiceJob
All Implemented Interfaces:
Comparable, IAdaptable

public class UMLElementSelectionServiceJob
extends ElementSelectionServiceJob

A job that knows how to coordinate access to the transactional editing domain via read transactions, when the thread scheduling the job (hence, accessing the element selection service) has a transaction already.


Nested Class Summary
 class UMLElementSelectionServiceJob.PrivilegedJobCompletionObserver
           
 
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
UMLElementSelectionServiceJob(String name, IElementSelectionProvider provider)
          Deprecated. Use UMLElementSelectionServiceJob.UMLElementSelectionServiceJob(String, IElementSelectionProvider, TransactionalEditingDomain) . This constructor uses the MEditingDomain.INSTANCE which could lead to a lock if the caller of the UMLElementSelectionService is not using the MEditingDomain.INSTANCE.
UMLElementSelectionServiceJob(String name, IElementSelectionProvider provider, TransactionalEditingDomain domain)
          Initializes me with a name and the provider to which I provide query results.
 
Method Summary
 UMLElementSelectionServiceJob.PrivilegedJobCompletionObserver getObserver()
           
protected  boolean isComplete()
           
protected  IStatus run(IProgressMonitor monitor)
           
 
Methods inherited from class org.eclipse.core.runtime.jobs.Job
addJobChangeListener, belongsTo, cancel, canceling, 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, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

UMLElementSelectionServiceJob

public UMLElementSelectionServiceJob(String name,
                                     IElementSelectionProvider provider)
Deprecated. Use UMLElementSelectionServiceJob.UMLElementSelectionServiceJob(String, IElementSelectionProvider, TransactionalEditingDomain) . This constructor uses the MEditingDomain.INSTANCE which could lead to a lock if the caller of the UMLElementSelectionService is not using the MEditingDomain.INSTANCE.

Initializes me with a name and the provider to which I provide query results.

Parameters:
name - my name
provider - my provider

UMLElementSelectionServiceJob

public UMLElementSelectionServiceJob(String name,
                                     IElementSelectionProvider provider,
                                     TransactionalEditingDomain domain)
Initializes me with a name and the provider to which I provide query results.

Parameters:
name - my name
provider - my provider
domain - the editing domain
Method Detail

run

protected final IStatus run(IProgressMonitor monitor)
Overrides:
run in class ElementSelectionServiceJob

isComplete

protected boolean isComplete()

getObserver

public UMLElementSelectionServiceJob.PrivilegedJobCompletionObserver getObserver()

UML Modeling Layer

© Copyright IBM Corp. 2009. All rights reserved.