|
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.ProviderDescriptor
public static class Service.ProviderDescriptor
A descriptor for providers defined by a configuration element.
| Field Summary | |
|---|---|
protected static java.lang.String |
A_CLASS
The name of the 'class' XML attribute. |
protected static java.lang.String |
A_PLUGIN
The name of the 'plugin' XML attribute. |
protected static java.lang.String |
E_POLICY
The name of the 'Policy' XML element. |
protected IProviderPolicy |
policy
The policy associated with this descriptor's provider (if specified). |
protected boolean |
policyInitialized
|
protected IProvider |
provider
The provider for which this object is a descriptor. |
| Constructor Summary | |
|---|---|
protected |
Service.ProviderDescriptor(IConfigurationElement element)
Constructs a new provider descriptor for the specified configuration element. |
| Method Summary | |
|---|---|
protected IConfigurationElement |
getElement()
Retrieves the configuration element describing this descriptor's provider. |
protected IProviderPolicy |
getPolicy()
Retrieves the policy associated with this descriptor's provider (if specified). |
IProvider |
getProvider()
Retrieves the provider for which this object is a descriptor. |
void |
providerChanged(ProviderChangeEvent event)
Handles an event indicating that a provider has changed. |
boolean |
provides(IOperation operation)
Indicates whether this provider descriptor can provide the functionality described by the specified operation. |
java.lang.String |
toString()
Returns the provider's class name, if it can be found. |
| 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, wait, wait, wait |
| Methods inherited from interface org.eclipse.gmf.runtime.common.core.service.IProvider |
|---|
addProviderChangeListener, removeProviderChangeListener |
| Field Detail |
|---|
protected boolean policyInitialized
protected static final java.lang.String A_CLASS
protected static final java.lang.String A_PLUGIN
protected static final java.lang.String E_POLICY
protected IProvider provider
protected IProviderPolicy policy
| Constructor Detail |
|---|
protected Service.ProviderDescriptor(IConfigurationElement element)
element - The configuration element describing the provider.| Method Detail |
|---|
protected final IConfigurationElement getElement()
public IProvider getProvider()
protected IProviderPolicy getPolicy()
public boolean provides(IOperation operation)
operation.
provides in interface IProvideroperation - The operation in question.
true if this descriptor's policy or provider
provides the operation; false otherwise.public void providerChanged(ProviderChangeEvent event)
providerChanged in interface IProviderChangeListenerevent - The provider change event to be handled.public java.lang.String toString()
toString in class java.lang.Object
|
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.