SAM

org.topcased.modeler.sam.providers
Class SAMModelerProviderAdapterFactory

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
      extended by org.topcased.sam.util.SAMAdapterFactory
          extended by org.topcased.modeler.sam.providers.SAMModelerProviderAdapterFactory
All Implemented Interfaces:
AdapterFactory, ComposeableAdapterFactory, IChangeNotifier, IDisposable

public class SAMModelerProviderAdapterFactory
extends SAMAdapterFactory
implements ComposeableAdapterFactory, IChangeNotifier, IDisposable

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 **

Field Summary
protected  IChangeNotifier changeNotifier
          This is used to implement IChangeNotifier.
protected  ComposedAdapterFactory parentAdapterFactory
          This keeps track of the root adapter factory that delegates to this adapter factory.
protected  java.util.Collection supportedTypes
          This keeps track of all the supported types checked by isFactoryForType.
 
Fields inherited from class org.topcased.sam.util.SAMAdapterFactory
copyright, modelPackage, modelSwitch
 
Constructor Summary
SAMModelerProviderAdapterFactory()
          This constructs an instance.
 
Method Summary
 Adapter adapt(Notifier notifier, java.lang.Object type)
          This implementation substitutes the factory itself as the key for the adapter.
 java.lang.Object adapt(java.lang.Object object, java.lang.Object type)
           
 void addListener(INotifyChangedListener notifyChangedListener)
          This adds a listener.
 Adapter createAbstractStateAdapter()
          This creates an adapter for a AbstractState
 Adapter createAutomatonAdapter()
          This creates an adapter for a Automaton.
 Adapter createCompositionAdapter()
          This creates an adapter for a Composition.
 Adapter createControlFlowAdapter()
          This creates an adapter for a ControlFlow.
 Adapter createControlPortAdapter()
          This creates an adapter for a ControlPort.
 Adapter createDataFlowAdapter()
          This creates an adapter for a DataFlow.
 Adapter createDataPortAdapter()
          This creates an adapter for a DataPort.
 Adapter createDataStoreAdapter()
          This creates an adapter for a DataStore.
 Adapter createDecompositionAdapter()
          This creates an adapter for a Decomposition
 Adapter createFlowAdapter()
          This creates an adapter for a Flow.
 Adapter createIdentifiedItemAdapter()
          This creates an adapter for a IdentifiedItem
 Adapter createInControlPortAdapter()
          This creates an adapter for a InControlPort
 Adapter createInDataPortAdapter()
          This creates an adapter for a InDataPort.
 Adapter createInitialStateAdapter()
          This creates an adapter for a InitialState
 Adapter createInputPortAdapter()
          This creates an adapter for a InputPort.
 Adapter createMacroStateAdapter()
          This creates an adapter for a MacroState.
 Adapter createModelAdapter()
          This creates an adapter for a Model.
 Adapter createModelContentAdapter()
          This creates an adapter for a ModelContent
 Adapter createMultiPortAdapter()
          This creates an adapter for a MultiPort.
 Adapter createNamedItemAdapter()
          This creates an adapter for a NamedItem.
 Adapter createOutControlPortAdapter()
          This creates an adapter for a OutControlPort
 Adapter createOutDataPortAdapter()
          This creates an adapter for a OutDataPort.
 Adapter createOutputPortAdapter()
          This creates an adapter for a OutputPort.
 Adapter createPortAdapter()
          This creates an adapter for a Port.
 Adapter createStateAdapter()
          This creates an adapter for a State.
 Adapter createSynchronisationGateAdapter()
          This creates an adapter for a SynchronisationGate.
 Adapter createSystemAdapter()
          This creates an adapter for a System.
 Adapter createTransitionAdapter()
          This creates an adapter for a Transition.
 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(java.lang.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 org.topcased.sam.util.SAMAdapterFactory
createAdapter, createEModelElementAdapter, createEObjectAdapter
 
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
adaptAllNew, adaptNew, associate, createAdapter, resolve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.common.notify.AdapterFactory
adaptAllNew, adaptNew
 

Field Detail

parentAdapterFactory

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

** Generated **

changeNotifier

protected IChangeNotifier changeNotifier
This is used to implement IChangeNotifier.

** Generated **

supportedTypes

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

** Generated **
Constructor Detail

SAMModelerProviderAdapterFactory

public SAMModelerProviderAdapterFactory()
This constructs an instance.

** Generated **
NOT
Method Detail

getRootAdapterFactory

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

Specified by:
getRootAdapterFactory in interface ComposeableAdapterFactory
** Generated **

setParentAdapterFactory

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

Specified by:
setParentAdapterFactory in interface ComposeableAdapterFactory
** Generated **

isFactoryForType

public boolean isFactoryForType(java.lang.Object type)

Specified by:
isFactoryForType in interface AdapterFactory
Overrides:
isFactoryForType in class SAMAdapterFactory
Parameters:
type - the type to test
Returns:
true if supported
** Generated **

adapt

public Adapter adapt(Notifier notifier,
                     java.lang.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
Parameters:
notifier - the notifier
type - the object to adapt
Returns:
the Adapter the created adatper
** Generated **

adapt

public java.lang.Object adapt(java.lang.Object object,
                              java.lang.Object type)

Specified by:
adapt in interface AdapterFactory
Overrides:
adapt in class AdapterFactoryImpl
Parameters:
object - the object to adapt
type - the type to adapt
Returns:
the adapted Object
** Generated **

addListener

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

Specified by:
addListener in interface IChangeNotifier
Parameters:
notifyChangedListener - the listener to add
** Generated **

removeListener

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

Specified by:
removeListener in interface IChangeNotifier
Parameters:
notifyChangedListener - the listener to remove
** Generated **

fireNotifyChanged

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

Specified by:
fireNotifyChanged in interface IChangeNotifier
** Generated **

createAbstractStateAdapter

public Adapter createAbstractStateAdapter()
This creates an adapter for a AbstractState.

Overrides:
createAbstractStateAdapter in class SAMAdapterFactory
Returns:
the Adapter
See Also:
AbstractState
** Generated **

createAutomatonAdapter

public Adapter createAutomatonAdapter()
This creates an adapter for a Automaton.

Overrides:
createAutomatonAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
Automaton
** Generated **

createInitialStateAdapter

public Adapter createInitialStateAdapter()
This creates an adapter for a InitialState.

Overrides:
createInitialStateAdapter in class SAMAdapterFactory
Returns:
the Adapter
See Also:
InitialState
** Generated **

createMacroStateAdapter

public Adapter createMacroStateAdapter()
This creates an adapter for a MacroState.

Overrides:
createMacroStateAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
MacroState
** Generated **

createStateAdapter

public Adapter createStateAdapter()
This creates an adapter for a State.

Overrides:
createStateAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
State
** Generated **

createTransitionAdapter

public Adapter createTransitionAdapter()
This creates an adapter for a Transition.

Overrides:
createTransitionAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
Transition
** Generated **

createControlPortAdapter

public Adapter createControlPortAdapter()
This creates an adapter for a ControlPort.

Overrides:
createControlPortAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
ControlPort
** Generated **

createDataPortAdapter

public Adapter createDataPortAdapter()
This creates an adapter for a DataPort.

Overrides:
createDataPortAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
DataPort
** Generated **

createInControlPortAdapter

public Adapter createInControlPortAdapter()
This creates an adapter for a InControlPort.

Overrides:
createInControlPortAdapter in class SAMAdapterFactory
Returns:
the Adapter
See Also:
InControlPort
** Generated **

createInDataPortAdapter

public Adapter createInDataPortAdapter()
This creates an adapter for a InDataPort.

Overrides:
createInDataPortAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
InDataPort
** Generated **

createInputPortAdapter

public Adapter createInputPortAdapter()
This creates an adapter for a InputPort.

Overrides:
createInputPortAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
InputPort
** Generated **

createOutControlPortAdapter

public Adapter createOutControlPortAdapter()
This creates an adapter for a OutControlPort.

Overrides:
createOutControlPortAdapter in class SAMAdapterFactory
Returns:
the Adapter
See Also:
OutControlPort
** Generated **

createOutDataPortAdapter

public Adapter createOutDataPortAdapter()
This creates an adapter for a OutDataPort.

Overrides:
createOutDataPortAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
OutDataPort
** Generated **

createOutputPortAdapter

public Adapter createOutputPortAdapter()
This creates an adapter for a OutputPort.

Overrides:
createOutputPortAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
OutputPort
** Generated **

createPortAdapter

public Adapter createPortAdapter()
This creates an adapter for a Port.

Overrides:
createPortAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
Port
** Generated **

createMultiPortAdapter

public Adapter createMultiPortAdapter()
This creates an adapter for a MultiPort.

Overrides:
createMultiPortAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
MultiPort
** Generated **

createCompositionAdapter

public Adapter createCompositionAdapter()
This creates an adapter for a Composition.

Overrides:
createCompositionAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
Composition
** Generated **

createControlFlowAdapter

public Adapter createControlFlowAdapter()
This creates an adapter for a ControlFlow.

Overrides:
createControlFlowAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
ControlFlow
** Generated **

createDataFlowAdapter

public Adapter createDataFlowAdapter()
This creates an adapter for a DataFlow.

Overrides:
createDataFlowAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
DataFlow
** Generated **

createDataStoreAdapter

public Adapter createDataStoreAdapter()
This creates an adapter for a DataStore.

Overrides:
createDataStoreAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
DataStore
** Generated **

createDecompositionAdapter

public Adapter createDecompositionAdapter()
This creates an adapter for a Decomposition.

Overrides:
createDecompositionAdapter in class SAMAdapterFactory
Returns:
the Adapter
See Also:
Decomposition
** Generated **

createFlowAdapter

public Adapter createFlowAdapter()
This creates an adapter for a Flow.

Overrides:
createFlowAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
Flow
** Generated **

createSynchronisationGateAdapter

public Adapter createSynchronisationGateAdapter()
This creates an adapter for a SynchronisationGate.

Overrides:
createSynchronisationGateAdapter in class SAMAdapterFactory
Returns:
the Adapter
See Also:
SynchronisationGate
** Generated **

createSystemAdapter

public Adapter createSystemAdapter()
This creates an adapter for a System.

Overrides:
createSystemAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
System
** Generated **

createModelAdapter

public Adapter createModelAdapter()
This creates an adapter for a Model.

Overrides:
createModelAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
Model
** Generated **

createModelContentAdapter

public Adapter createModelContentAdapter()
This creates an adapter for a ModelContent.

Overrides:
createModelContentAdapter in class SAMAdapterFactory
Returns:
the Adapter
See Also:
ModelContent
** Generated **

createIdentifiedItemAdapter

public Adapter createIdentifiedItemAdapter()
This creates an adapter for a IdentifiedItem.

Overrides:
createIdentifiedItemAdapter in class SAMAdapterFactory
Returns:
the Adapter
See Also:
IdentifiedItem
** Generated **

createNamedItemAdapter

public Adapter createNamedItemAdapter()
This creates an adapter for a NamedItem.

Overrides:
createNamedItemAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
NamedItem
** Generated **

dispose

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

Specified by:
dispose in interface IDisposable
** Generated **

SAM

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.