|
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.common.ui.services.properties.PropertiesService
public class PropertiesService
The property service taks all property contributions from property source providers and assembles these properties into a property source object.
Nested Class Summary | |
---|---|
protected static class |
PropertiesService.PropertiesProviderDescriptor
A descriptor for providers defined by a configuration element. |
Nested classes/interfaces inherited from class org.eclipse.gmf.runtime.common.core.service.Service |
---|
Service.ProviderDescriptor |
Field Summary |
---|
Fields inherited from class org.eclipse.gmf.runtime.common.core.service.Service |
---|
INVALID_ELEMENT_MESSAGE_PATTERN |
Method Summary | |
---|---|
void |
applyModifiers(IPropertiesProvider provider,
ICompositePropertySource propertySource)
Apply property source modifiers appropriate for the given provider |
void |
configureModifiers(IConfigurationElement[] elements)
Configure all modifier elements. |
static PropertiesService |
getInstance()
This operation implements the logic for returning the same instance of the Singleton pattern. |
protected org.eclipse.gmf.runtime.common.ui.services.properties.PropertiesService.ModifiersService |
getModifiersService(IPropertiesProvider provider)
Retrieve an instance of the ModifierService, appropriate for the given provider. |
ICompositePropertySource |
getPropertySource(java.lang.Object object)
Return a property source for the given object |
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, createPriorityCache, execute, executeUnique, getAllProviders, getCachingKey, 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 PropertiesService getInstance()
PropertiesService
public ICompositePropertySource getPropertySource(java.lang.Object object)
getPropertySource
in interface IPropertiesProvider
object
- -
target of the properties
IPropertiesProvider.getPropertySource(Object)
public void applyModifiers(IPropertiesProvider provider, ICompositePropertySource propertySource)
provider
- -
a property provider which contributed the propertiespropertySource
- -
a property source object containing properties, contributed by
the given providerprotected org.eclipse.gmf.runtime.common.ui.services.properties.PropertiesService.ModifiersService getModifiersService(IPropertiesProvider provider)
provider
- an instance of IPropertiesProvider
public final void configureModifiers(IConfigurationElement[] elements)
elements
- -
modifier configuration elementsprotected Service.ProviderDescriptor newProviderDescriptor(IConfigurationElement element)
Service
element
.
newProviderDescriptor
in class Service
element
- The configuration element from which to create the descriptor.
|
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.