Class CompositionItemProviderAdapterFactory

java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
org.palladiosimulator.pcm.core.composition.util.CompositionAdapterFactory
org.palladiosimulator.pcm.core.composition.provider.CompositionItemProviderAdapterFactory
All Implemented Interfaces:
AdapterFactory, ComposeableAdapterFactory, IChangeNotifier, IChildCreationExtender, IDisposable

public class CompositionItemProviderAdapterFactory extends org.palladiosimulator.pcm.core.composition.util.CompositionAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable, IChildCreationExtender
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.
Generated class or method.
  • Field Details

    • parentAdapterFactory

      protected ComposedAdapterFactory parentAdapterFactory
      This keeps track of the root adapter factory that delegates to this adapter factory.
      Generated class or method.
    • changeNotifier

      protected IChangeNotifier changeNotifier
      This is used to implement IChangeNotifier.
      Generated class or method.
    • childCreationExtenderManager

      protected ChildCreationExtenderManager childCreationExtenderManager
      This helps manage the child creation extenders.
      Generated class or method.
    • supportedTypes

      protected Collection<Object> supportedTypes
      This keeps track of all the supported types checked by isFactoryForType.
      Generated class or method.
    • resourceRequiredDelegationConnectorItemProvider

      protected ResourceRequiredDelegationConnectorItemProvider resourceRequiredDelegationConnectorItemProvider
      This keeps track of the one adapter used for all ResourceRequiredDelegationConnector instances.
      Generated class or method.
    • eventChannelItemProvider

      protected EventChannelItemProvider eventChannelItemProvider
      This keeps track of the one adapter used for all EventChannel instances.
      Generated class or method.
    • eventChannelSourceConnectorItemProvider

      protected EventChannelSourceConnectorItemProvider eventChannelSourceConnectorItemProvider
      This keeps track of the one adapter used for all EventChannelSourceConnector instances.
      Generated class or method.
    • eventChannelSinkConnectorItemProvider

      protected EventChannelSinkConnectorItemProvider eventChannelSinkConnectorItemProvider
      This keeps track of the one adapter used for all EventChannelSinkConnector instances.
      Generated class or method.
    • providedDelegationConnectorItemProvider

      protected ProvidedDelegationConnectorItemProvider providedDelegationConnectorItemProvider
      This keeps track of the one adapter used for all ProvidedDelegationConnector instances.
      Generated class or method.
    • requiredDelegationConnectorItemProvider

      protected RequiredDelegationConnectorItemProvider requiredDelegationConnectorItemProvider
      This keeps track of the one adapter used for all RequiredDelegationConnector instances.
      Generated class or method.
    • assemblyConnectorItemProvider

      protected AssemblyConnectorItemProvider assemblyConnectorItemProvider
      This keeps track of the one adapter used for all AssemblyConnector instances.
      Generated class or method.
    • assemblyEventConnectorItemProvider

      protected AssemblyEventConnectorItemProvider assemblyEventConnectorItemProvider
      This keeps track of the one adapter used for all AssemblyEventConnector instances.
      Generated class or method.
    • sourceDelegationConnectorItemProvider

      protected SourceDelegationConnectorItemProvider sourceDelegationConnectorItemProvider
      This keeps track of the one adapter used for all SourceDelegationConnector instances.
      Generated class or method.
    • sinkDelegationConnectorItemProvider

      protected SinkDelegationConnectorItemProvider sinkDelegationConnectorItemProvider
      This keeps track of the one adapter used for all SinkDelegationConnector instances.
      Generated class or method.
    • assemblyInfrastructureConnectorItemProvider

      protected AssemblyInfrastructureConnectorItemProvider assemblyInfrastructureConnectorItemProvider
      This keeps track of the one adapter used for all AssemblyInfrastructureConnector instances.
      Generated class or method.
    • providedInfrastructureDelegationConnectorItemProvider

      protected ProvidedInfrastructureDelegationConnectorItemProvider providedInfrastructureDelegationConnectorItemProvider
      This keeps track of the one adapter used for all ProvidedInfrastructureDelegationConnector instances.
      Generated class or method.
    • requiredInfrastructureDelegationConnectorItemProvider

      protected RequiredInfrastructureDelegationConnectorItemProvider requiredInfrastructureDelegationConnectorItemProvider
      This keeps track of the one adapter used for all RequiredInfrastructureDelegationConnector instances.
      Generated class or method.
    • requiredResourceDelegationConnectorItemProvider

      protected RequiredResourceDelegationConnectorItemProvider requiredResourceDelegationConnectorItemProvider
      This keeps track of the one adapter used for all RequiredResourceDelegationConnector instances.
      Generated class or method.
    • assemblyContextItemProvider

      protected AssemblyContextItemProvider assemblyContextItemProvider
      This keeps track of the one adapter used for all AssemblyContext instances.
      Generated class or method.
  • Constructor Details

    • CompositionItemProviderAdapterFactory

      public CompositionItemProviderAdapterFactory()
      This constructs an instance.
      Generated class or method.
  • Method Details

    • createResourceRequiredDelegationConnectorAdapter

      public Adapter createResourceRequiredDelegationConnectorAdapter()
      This creates an adapter for a ResourceRequiredDelegationConnector.
      Overrides:
      createResourceRequiredDelegationConnectorAdapter in class org.palladiosimulator.pcm.core.composition.util.CompositionAdapterFactory
      Generated class or method.
    • createEventChannelAdapter

      public Adapter createEventChannelAdapter()
      This creates an adapter for a EventChannel.
      Overrides:
      createEventChannelAdapter in class org.palladiosimulator.pcm.core.composition.util.CompositionAdapterFactory
      Generated class or method.
    • createEventChannelSourceConnectorAdapter

      public Adapter createEventChannelSourceConnectorAdapter()
      This creates an adapter for a EventChannelSourceConnector.
      Overrides:
      createEventChannelSourceConnectorAdapter in class org.palladiosimulator.pcm.core.composition.util.CompositionAdapterFactory
      Generated class or method.
    • createEventChannelSinkConnectorAdapter

      public Adapter createEventChannelSinkConnectorAdapter()
      This creates an adapter for a EventChannelSinkConnector.
      Overrides:
      createEventChannelSinkConnectorAdapter in class org.palladiosimulator.pcm.core.composition.util.CompositionAdapterFactory
      Generated class or method.
    • createProvidedDelegationConnectorAdapter

      public Adapter createProvidedDelegationConnectorAdapter()
      This creates an adapter for a ProvidedDelegationConnector.
      Overrides:
      createProvidedDelegationConnectorAdapter in class org.palladiosimulator.pcm.core.composition.util.CompositionAdapterFactory
      Generated class or method.
    • createRequiredDelegationConnectorAdapter

      public Adapter createRequiredDelegationConnectorAdapter()
      This creates an adapter for a RequiredDelegationConnector.
      Overrides:
      createRequiredDelegationConnectorAdapter in class org.palladiosimulator.pcm.core.composition.util.CompositionAdapterFactory
      Generated class or method.
    • createAssemblyConnectorAdapter

      public Adapter createAssemblyConnectorAdapter()
      This creates an adapter for a AssemblyConnector.
      Overrides:
      createAssemblyConnectorAdapter in class org.palladiosimulator.pcm.core.composition.util.CompositionAdapterFactory
      Generated class or method.
    • createAssemblyEventConnectorAdapter

      public Adapter createAssemblyEventConnectorAdapter()
      This creates an adapter for a AssemblyEventConnector.
      Overrides:
      createAssemblyEventConnectorAdapter in class org.palladiosimulator.pcm.core.composition.util.CompositionAdapterFactory
      Generated class or method.
    • createSourceDelegationConnectorAdapter

      public Adapter createSourceDelegationConnectorAdapter()
      This creates an adapter for a SourceDelegationConnector.
      Overrides:
      createSourceDelegationConnectorAdapter in class org.palladiosimulator.pcm.core.composition.util.CompositionAdapterFactory
      Generated class or method.
    • createSinkDelegationConnectorAdapter

      public Adapter createSinkDelegationConnectorAdapter()
      This creates an adapter for a SinkDelegationConnector.
      Overrides:
      createSinkDelegationConnectorAdapter in class org.palladiosimulator.pcm.core.composition.util.CompositionAdapterFactory
      Generated class or method.
    • createAssemblyInfrastructureConnectorAdapter

      public Adapter createAssemblyInfrastructureConnectorAdapter()
      This creates an adapter for a AssemblyInfrastructureConnector.
      Overrides:
      createAssemblyInfrastructureConnectorAdapter in class org.palladiosimulator.pcm.core.composition.util.CompositionAdapterFactory
      Generated class or method.
    • createProvidedInfrastructureDelegationConnectorAdapter

      public Adapter createProvidedInfrastructureDelegationConnectorAdapter()
      This creates an adapter for a ProvidedInfrastructureDelegationConnector.
      Overrides:
      createProvidedInfrastructureDelegationConnectorAdapter in class org.palladiosimulator.pcm.core.composition.util.CompositionAdapterFactory
      Generated class or method.
    • createRequiredInfrastructureDelegationConnectorAdapter

      public Adapter createRequiredInfrastructureDelegationConnectorAdapter()
      This creates an adapter for a RequiredInfrastructureDelegationConnector.
      Overrides:
      createRequiredInfrastructureDelegationConnectorAdapter in class org.palladiosimulator.pcm.core.composition.util.CompositionAdapterFactory
      Generated class or method.
    • createRequiredResourceDelegationConnectorAdapter

      public Adapter createRequiredResourceDelegationConnectorAdapter()
      This creates an adapter for a RequiredResourceDelegationConnector.
      Overrides:
      createRequiredResourceDelegationConnectorAdapter in class org.palladiosimulator.pcm.core.composition.util.CompositionAdapterFactory
      Generated class or method.
    • createAssemblyContextAdapter

      public Adapter createAssemblyContextAdapter()
      This creates an adapter for a AssemblyContext.
      Overrides:
      createAssemblyContextAdapter in class org.palladiosimulator.pcm.core.composition.util.CompositionAdapterFactory
      Generated class or method.
    • getRootAdapterFactory

      public ComposeableAdapterFactory getRootAdapterFactory()
      This returns the root adapter factory that contains this factory.
      Specified by:
      getRootAdapterFactory in interface ComposeableAdapterFactory
      Generated class or method.
    • setParentAdapterFactory

      public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory)
      This sets the composed adapter factory that contains this factory.
      Specified by:
      setParentAdapterFactory in interface ComposeableAdapterFactory
      Generated class or method.
    • isFactoryForType

      public boolean isFactoryForType(Object type)
      Specified by:
      isFactoryForType in interface AdapterFactory
      Overrides:
      isFactoryForType in class org.palladiosimulator.pcm.core.composition.util.CompositionAdapterFactory
      Generated class or method.
    • adapt

      public Adapter adapt(Notifier notifier, Object type)
      This implementation substitutes the factory itself as the key for the adapter.
      Specified by:
      adapt in interface AdapterFactory
      Overrides:
      adapt in class AdapterFactoryImpl
      Generated class or method.
    • adapt

      public Object adapt(Object object, Object type)
      Specified by:
      adapt in interface AdapterFactory
      Overrides:
      adapt in class AdapterFactoryImpl
      Generated class or method.
    • getChildCreationExtenders

      public List<IChildCreationExtender> getChildCreationExtenders()
      Generated class or method.
    • getNewChildDescriptors

      public Collection<?> getNewChildDescriptors(Object object, EditingDomain editingDomain)
      Specified by:
      getNewChildDescriptors in interface IChildCreationExtender
      Generated class or method.
    • getResourceLocator

      public ResourceLocator getResourceLocator()
      Specified by:
      getResourceLocator in interface IChildCreationExtender
      Generated class or method.
    • addListener

      public void addListener(INotifyChangedListener notifyChangedListener)
      This adds a listener.
      Specified by:
      addListener in interface IChangeNotifier
      Generated class or method.
    • removeListener

      public void removeListener(INotifyChangedListener notifyChangedListener)
      This removes a listener.
      Specified by:
      removeListener in interface IChangeNotifier
      Generated class or method.
    • fireNotifyChanged

      public void fireNotifyChanged(Notification notification)
      This delegates to changeNotifier and to parentAdapterFactory.
      Specified by:
      fireNotifyChanged in interface IChangeNotifier
      Generated class or method.
    • dispose

      public void dispose()
      This disposes all of the item providers created by this factory.
      Specified by:
      dispose in interface IDisposable
      Generated class or method.