public class UMLElementSelectionService
extends RMPElementSelectionService
The singleton instance of this class should be used as an alternative to
the ElementSelectionService
singleton wherever a transactional
editing domain is to be queried.
Constructor and Description |
---|
UMLElementSelectionService() |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.gmf.runtime.common.ui.services.elementselection.ElementSelectionServiceJob |
createSelectionJob()
Creates an element selection job that supports a transactional editing
domain context.
|
protected org.eclipse.emf.transaction.TransactionalEditingDomain |
getEditingDomain()
Gets the editing domain that had previously been set; otherwise, returns
the the
MEditingDomain.INSTANCE . |
static org.eclipse.gmf.runtime.common.ui.services.elementselection.ElementSelectionService |
getUMLInstance()
Obtains the singleton instance of the UML Element Selection Service.
|
void |
run(org.eclipse.core.runtime.IProgressMonitor monitor) |
protected void |
schedule(org.eclipse.gmf.runtime.common.ui.services.elementselection.IElementSelectionProvider provider,
org.eclipse.gmf.runtime.common.ui.services.elementselection.ElementSelectionServiceJob job)
Schedules the specified element selection job, accounting for the fact
that it may not be able to run concurrently with other jobs that require
read transactions, if it needs one, itself.
|
public static org.eclipse.gmf.runtime.common.ui.services.elementselection.ElementSelectionService getUMLInstance()
protected org.eclipse.emf.transaction.TransactionalEditingDomain getEditingDomain()
MEditingDomain.INSTANCE
.protected org.eclipse.gmf.runtime.common.ui.services.elementselection.ElementSelectionServiceJob createSelectionJob()
protected void schedule(org.eclipse.gmf.runtime.common.ui.services.elementselection.IElementSelectionProvider provider, org.eclipse.gmf.runtime.common.ui.services.elementselection.ElementSelectionServiceJob job)
public void run(org.eclipse.core.runtime.IProgressMonitor monitor)