Rational Developer for Power Systems Software
V7.6

com.ibm.etools.systems.app.model.src.provider
Class SrcItemProviderAdapterFactory

java.lang.Object
  extended by AdapterFactoryImpl
      extended by com.ibm.etools.systems.app.model.src.util.SrcAdapterFactory
          extended by com.ibm.etools.systems.app.model.src.provider.SrcItemProviderAdapterFactory

public class SrcItemProviderAdapterFactory
extends SrcAdapterFactory

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  CallableBlockItemProvider callableBlockItemProvider
          This keeps track of the one adapter used for all CallableBlock instances.
protected  CallableBlockWithSignatureItemProvider callableBlockWithSignatureItemProvider
          This keeps track of the one adapter used for all CallableBlockWithSignature instances.
protected  CallsRelationshipItemProvider callsRelationshipItemProvider
          This keeps track of the one adapter used for all CallsRelationship instances.
protected  IChangeNotifier changeNotifier
          This is used to implement org.eclipse.emf.edit.provider.IChangeNotifier.
static String copyright
           
protected  IncludesRelationshipItemProvider includesRelationshipItemProvider
          This keeps track of the one adapter used for all IncludesRelationship instances.
protected  InvokesRelationshipItemProvider invokesRelationshipItemProvider
          This keeps track of the one adapter used for all InvokesRelationship instances.
protected  ComposedAdapterFactory parentAdapterFactory
          This keeps track of the root adapter factory that delegates to this adapter factory.
protected  SourceContainerItemProvider sourceContainerItemProvider
          This keeps track of the one adapter used for all SourceContainer 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.src.util.SrcAdapterFactory
modelPackage, modelSwitch
 
Constructor Summary
SrcItemProviderAdapterFactory()
          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 createCallableBlockAdapter()
          This creates an adapter for a CallableBlock.
 Adapter createCallableBlockWithSignatureAdapter()
          This creates an adapter for a CallableBlockWithSignature.
 Adapter createCallsRelationshipAdapter()
          This creates an adapter for a CallsRelationship.
 Adapter createIncludesRelationshipAdapter()
          This creates an adapter for a IncludesRelationship.
 Adapter createInvokesRelationshipAdapter()
          This creates an adapter for a InvokesRelationship.
 Adapter createSourceContainerAdapter()
          This creates an adapter for a SourceContainer.
 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.src.util.SrcAdapterFactory
createAdapter, createArtifactAdapter, createEObjectAdapter, createMainEntryPointAdapter, createRelationshipAdapter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright

See Also:
Constant Field Values

parentAdapterFactory

protected ComposedAdapterFactory parentAdapterFactory
This keeps track of the root adapter factory that delegates to this adapter factory.


changeNotifier

protected IChangeNotifier changeNotifier
This is used to implement org.eclipse.emf.edit.provider.IChangeNotifier.


supportedTypes

protected Collection supportedTypes
This keeps track of all the supported types checked by isFactoryForType.


includesRelationshipItemProvider

protected IncludesRelationshipItemProvider includesRelationshipItemProvider
This keeps track of the one adapter used for all IncludesRelationship instances.


invokesRelationshipItemProvider

protected InvokesRelationshipItemProvider invokesRelationshipItemProvider
This keeps track of the one adapter used for all InvokesRelationship instances.


callableBlockWithSignatureItemProvider

protected CallableBlockWithSignatureItemProvider callableBlockWithSignatureItemProvider
This keeps track of the one adapter used for all CallableBlockWithSignature instances.


callableBlockItemProvider

protected CallableBlockItemProvider callableBlockItemProvider
This keeps track of the one adapter used for all CallableBlock instances.


sourceContainerItemProvider

protected SourceContainerItemProvider sourceContainerItemProvider
This keeps track of the one adapter used for all SourceContainer instances.


callsRelationshipItemProvider

protected CallsRelationshipItemProvider callsRelationshipItemProvider
This keeps track of the one adapter used for all CallsRelationship instances.

Constructor Detail

SrcItemProviderAdapterFactory

public SrcItemProviderAdapterFactory()
This constructs an instance.

Method Detail

createIncludesRelationshipAdapter

public Adapter createIncludesRelationshipAdapter()
This creates an adapter for a IncludesRelationship.

Overrides:
createIncludesRelationshipAdapter in class SrcAdapterFactory
Returns:
the new adapter.
See Also:
IncludesRelationship

createInvokesRelationshipAdapter

public Adapter createInvokesRelationshipAdapter()
This creates an adapter for a InvokesRelationship.

Overrides:
createInvokesRelationshipAdapter in class SrcAdapterFactory
Returns:
the new adapter.
See Also:
InvokesRelationship

createCallableBlockWithSignatureAdapter

public Adapter createCallableBlockWithSignatureAdapter()
This creates an adapter for a CallableBlockWithSignature.

Overrides:
createCallableBlockWithSignatureAdapter in class SrcAdapterFactory
Returns:
the new adapter.
See Also:
CallableBlockWithSignature

createCallableBlockAdapter

public Adapter createCallableBlockAdapter()
This creates an adapter for a CallableBlock.

Overrides:
createCallableBlockAdapter in class SrcAdapterFactory
Returns:
the new adapter.
See Also:
CallableBlock

createSourceContainerAdapter

public Adapter createSourceContainerAdapter()
This creates an adapter for a SourceContainer.

Overrides:
createSourceContainerAdapter in class SrcAdapterFactory
Returns:
the new adapter.
See Also:
SourceContainer

createCallsRelationshipAdapter

public Adapter createCallsRelationshipAdapter()
This creates an adapter for a CallsRelationship.

Overrides:
createCallsRelationshipAdapter in class SrcAdapterFactory
Returns:
the new adapter.
See Also:
CallsRelationship

getRootAdapterFactory

public ComposeableAdapterFactory getRootAdapterFactory()
This returns the root adapter factory that contains this factory.


setParentAdapterFactory

public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory)
This sets the composed adapter factory that contains this factory.


isFactoryForType

public boolean isFactoryForType(Object type)

Overrides:
isFactoryForType in class SrcAdapterFactory
Returns:
whether this factory is applicable for the type of the object.

adapt

public Adapter adapt(Notifier notifier,
                     Object type)
This implementation substitutes the factory itself as the key for the adapter.


addListener

public void addListener(INotifyChangedListener notifyChangedListener)
This adds a listener.


removeListener

public void removeListener(INotifyChangedListener notifyChangedListener)
This removes a listener.


fireNotifyChanged

public void fireNotifyChanged(Notification notification)
This delegates to changeNotifier and to parentAdapterFactory.


dispose

public void dispose()
This disposes all of the item providers created by this factory.


Rational Developer for Power Systems Software
V7.6

Copyright 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.