|
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.ui.services.editpart.EditPartService
A service that supports the creation of editpart elements. Default editparts will be created if no sub-implementation creates one.
EditPartService.createGraphicEditPart(View)| Nested Class Summary | |
protected static class |
EditPartService.ProviderDescriptor
A descriptor for ISemanticProvider defined
by a configuration element. |
| Field Summary |
| Fields inherited from class org.eclipse.gmf.runtime.common.core.service.Service |
INVALID_ELEMENT_MESSAGE_PATTERN |
| Method Summary | |
EditPart |
createEditPart(EditPart context,
java.lang.Object model)
|
IGraphicalEditPart |
createGraphicEditPart(View view)
Creates an IGraphicalEditPart instance by forwarding a CreateGraphicEditPartOperation
to the registered providers. |
protected java.util.Map |
createPriorityCache()
Creates a map for caching service providers keyed by the values returned in EditPartService.getCachingKey(IOperation). |
RootEditPart |
createRootEditPart(Diagram diagram)
Creates a RootEditPart. |
protected java.lang.Object |
getCachingKey(IOperation operation)
Gets the key used to cache service providers that provide for operation in the map created by
EditPartService.createPriorityCache(). |
static EditPartService |
getInstance()
Signleton constructor. |
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 |
| Method Detail |
public static EditPartService getInstance()
protected Service.ProviderDescriptor newProviderDescriptor(IConfigurationElement element)
Serviceelement.
newProviderDescriptor in class Serviceelement - The configuration element from which to create the descriptor.
Service.newProviderDescriptor(org.eclipse.core.runtime.IConfigurationElement)protected java.util.Map createPriorityCache()
ServiceService.getCachingKey(IOperation).
createPriorityCache in class ServiceService.createPriorityCache()protected java.lang.Object getCachingKey(IOperation operation)
Serviceoperation in the map created by
Service.createPriorityCache().
getCachingKey in class Serviceoperation - IOperation for which the key will be retrieved
public IGraphicalEditPart createGraphicEditPart(View view)
IGraphicalEditPart instance by forwarding a CreateGraphicEditPartOperation
to the registered providers. The supplied parameter is the editpart's constructor
parameter. The following default editparts are created if none is created by a provider.
IDiagramView ... DiagramEditPart
ILabelViewLabelEditPart
ITextCompartmentView ... TextCompartmentEditPart
createGraphicEditPart in interface org.eclipse.gmf.runtime.diagram.ui.internal.services.editpart.IEditPartProviderview - the view element controlled by the created editpart
public EditPart createEditPart(EditPart context,
java.lang.Object model)
createEditPart in interface EditPartFactorypublic RootEditPart createRootEditPart(Diagram diagram)
org.eclipse.gmf.runtime.diagram.ui.internal.services.editpart.IEditPartProviderRootEditPart.
createRootEditPart in interface org.eclipse.gmf.runtime.diagram.ui.internal.services.editpart.IEditPartProviderdiagram - Diagram notation object that is the context for the operation.
RootEditPart
|
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.