|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object AdapterFactoryImpl com.ibm.etools.systems.app.model.util.ModelAdapterFactory com.ibm.etools.systems.app.model.provider.ModelItemProviderAdapterFactory
public class ModelItemProviderAdapterFactory
This is the factory that is used to provide the interfaces needed to support Viewers.
The adapters generated by this factory convert EMF adapter notifications into calls to fireNotifyChanged
.
The adapters also support Eclipse property sheets.
Note that most of the adapters are shared among multiple instances.
Field Summary | |
---|---|
protected ApplicationModelItemProvider |
applicationModelItemProvider
This keeps track of the one adapter used for all ApplicationModel instances. |
protected ArtifactItemProvider |
artifactItemProvider
This keeps track of the one adapter used for all Artifact instances. |
protected IChangeNotifier |
changeNotifier
This is used to implement org.eclipse.emf.edit.provider.IChangeNotifier . |
static String |
copyright
|
protected ComposedAdapterFactory |
parentAdapterFactory
This keeps track of the root adapter factory that delegates to this adapter factory. |
protected RelationshipItemProvider |
relationshipItemProvider
This keeps track of the one adapter used for all Relationship instances. |
protected Collection |
supportedTypes
This keeps track of all the supported types checked by isFactoryForType . |
Fields inherited from class com.ibm.etools.systems.app.model.util.ModelAdapterFactory |
---|
modelPackage, modelSwitch |
Constructor Summary | |
---|---|
ModelItemProviderAdapterFactory()
This constructs an instance. |
Method Summary | |
---|---|
Adapter |
adapt(Notifier notifier,
Object type)
This implementation substitutes the factory itself as the key for the adapter. |
void |
addListener(INotifyChangedListener notifyChangedListener)
This adds a listener. |
Adapter |
createApplicationModelAdapter()
This creates an adapter for a ApplicationModel . |
Adapter |
createArtifactAdapter()
This creates an adapter for a Artifact . |
Adapter |
createRelationshipAdapter()
This creates an adapter for a Relationship . |
void |
dispose()
This disposes all of the item providers created by this factory. |
void |
fireNotifyChanged(Notification notification)
This delegates to changeNotifier and to parentAdapterFactory . |
ComposeableAdapterFactory |
getRootAdapterFactory()
This returns the root adapter factory that contains this factory. |
boolean |
isFactoryForType(Object type)
|
void |
removeListener(INotifyChangedListener notifyChangedListener)
This removes a listener. |
void |
setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory)
This sets the composed adapter factory that contains this factory. |
Methods inherited from class com.ibm.etools.systems.app.model.util.ModelAdapterFactory |
---|
createAdapter, createEObjectAdapter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String copyright
protected ComposedAdapterFactory parentAdapterFactory
protected IChangeNotifier changeNotifier
org.eclipse.emf.edit.provider.IChangeNotifier
.
protected Collection supportedTypes
isFactoryForType
.
protected RelationshipItemProvider relationshipItemProvider
Relationship
instances.
protected ArtifactItemProvider artifactItemProvider
Artifact
instances.
protected ApplicationModelItemProvider applicationModelItemProvider
ApplicationModel
instances.
Constructor Detail |
---|
public ModelItemProviderAdapterFactory()
Method Detail |
---|
public Adapter createRelationshipAdapter()
Relationship
.
createRelationshipAdapter
in class ModelAdapterFactory
Relationship
public Adapter createArtifactAdapter()
Artifact
.
createArtifactAdapter
in class ModelAdapterFactory
Artifact
public Adapter createApplicationModelAdapter()
ApplicationModel
.
createApplicationModelAdapter
in class ModelAdapterFactory
ApplicationModel
public ComposeableAdapterFactory getRootAdapterFactory()
public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory)
public boolean isFactoryForType(Object type)
isFactoryForType
in class ModelAdapterFactory
public Adapter adapt(Notifier notifier, Object type)
public void addListener(INotifyChangedListener notifyChangedListener)
public void removeListener(INotifyChangedListener notifyChangedListener)
public void fireNotifyChanged(Notification notification)
changeNotifier
and to parentAdapterFactory
.
public void dispose()
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |