|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmf.runtime.common.core.service.AbstractProvider
org.eclipse.gmf.runtime.common.core.service.Service
org.eclipse.gmf.runtime.diagram.core.services.DiagramEventBrokerService
public class DiagramEventBrokerService
A service for manipulating Diagram Event broker creations
Nested Class Summary | |
---|---|
protected static class |
DiagramEventBrokerService.ProviderDescriptor
|
Field Summary |
---|
Fields inherited from class org.eclipse.gmf.runtime.common.core.service.Service |
---|
INVALID_ELEMENT_MESSAGE_PATTERN |
Constructor Summary | |
---|---|
DiagramEventBrokerService()
|
Method Summary | |
---|---|
DiagramEventBroker |
createDiagramEventBroker(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
Creates a DiagramEventBroker instance and associate it
with the passed TransactionalEditingDomain |
protected java.util.Map |
createPriorityCache()
Creates a map for caching service providers keyed by the values returned in Service.getCachingKey(IOperation) . |
protected java.lang.Object |
getCachingKey(IOperation operation)
Gets the key used to cache service providers that provide for operation in the map created by
Service.createPriorityCache() . |
static DiagramEventBrokerService |
getInstance()
Retrieves the singleton instance of the diagram Event Broker Factory service |
protected Service.ProviderDescriptor |
newProviderDescriptor(IConfigurationElement _element)
Creates a new provider descriptor for the specified configuration element . |
Methods inherited from class org.eclipse.gmf.runtime.common.core.service.Service |
---|
addProvider, clearCache, configureProviders, configureProviders, execute, executeUnique, getAllProviders, getPriority, getProviders, isOptimistic, isOptimized, providerChanged, provides, provides, removeProvider |
Methods inherited from class org.eclipse.gmf.runtime.common.core.service.AbstractProvider |
---|
addProviderChangeListener, fireProviderChange, removeProviderChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.gmf.runtime.common.core.service.IProvider |
---|
addProviderChangeListener, provides, removeProviderChangeListener |
Constructor Detail |
---|
public DiagramEventBrokerService()
Method Detail |
---|
public static DiagramEventBrokerService getInstance()
public final DiagramEventBroker createDiagramEventBroker(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
DiagramEventBrokerProvider
DiagramEventBroker
instance and associate it
with the passed TransactionalEditingDomain
createDiagramEventBroker
in interface DiagramEventBrokerProvider
editingDomain
- the editing domain that will be associated with the diagram
event broker
protected Service.ProviderDescriptor newProviderDescriptor(IConfigurationElement _element)
Service
element
.
newProviderDescriptor
in class Service
_element
- The configuration element from which to create the descriptor.
Service.newProviderDescriptor(org.eclipse.core.runtime.IConfigurationElement)
protected java.util.Map createPriorityCache()
Service
Service.getCachingKey(IOperation)
.
createPriorityCache
in class Service
Service.createPriorityCache()
protected java.lang.Object getCachingKey(IOperation operation)
Service
operation
in the map created by
Service.createPriorityCache()
.
getCachingKey
in class Service
operation
- IOperation
for which the key will be retrieved
org.eclipse.gmf.runtime.common.core.service.Service#getCacheKey(org.eclipse.gmf.runtime.common.core.service.IOperation)
|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.