|
SAM | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.common.notify.impl.AdapterFactoryImpl
org.topcased.sam.util.SAMAdapterFactory
org.topcased.modeler.sam.providers.SAMModelerProviderAdapterFactory
public class SAMModelerProviderAdapterFactory
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 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 |
|---|
protected ComposedAdapterFactory parentAdapterFactory
protected IChangeNotifier changeNotifier
IChangeNotifier.
protected java.util.Collection supportedTypes
isFactoryForType.
| Constructor Detail |
|---|
public SAMModelerProviderAdapterFactory()
| Method Detail |
|---|
public ComposeableAdapterFactory getRootAdapterFactory()
getRootAdapterFactory in interface ComposeableAdapterFactorypublic void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory)
setParentAdapterFactory in interface ComposeableAdapterFactorypublic boolean isFactoryForType(java.lang.Object type)
isFactoryForType in interface AdapterFactoryisFactoryForType in class SAMAdapterFactorytype - the type to test
public Adapter adapt(Notifier notifier,
java.lang.Object type)
adapt in interface AdapterFactoryadapt in class AdapterFactoryImplnotifier - the notifiertype - the object to adapt
public java.lang.Object adapt(java.lang.Object object,
java.lang.Object type)
adapt in interface AdapterFactoryadapt in class AdapterFactoryImplobject - the object to adapttype - the type to adapt
public void addListener(INotifyChangedListener notifyChangedListener)
addListener in interface IChangeNotifiernotifyChangedListener - the listener to addpublic void removeListener(INotifyChangedListener notifyChangedListener)
removeListener in interface IChangeNotifiernotifyChangedListener - the listener to removepublic void fireNotifyChanged(Notification notification)
changeNotifier and to
parentAdapterFactory.
fireNotifyChanged in interface IChangeNotifierpublic Adapter createAbstractStateAdapter()
AbstractState.
createAbstractStateAdapter in class SAMAdapterFactoryAbstractStatepublic Adapter createAutomatonAdapter()
Automaton.
createAutomatonAdapter in class SAMAdapterFactoryAutomatonpublic Adapter createInitialStateAdapter()
InitialState.
createInitialStateAdapter in class SAMAdapterFactoryInitialStatepublic Adapter createMacroStateAdapter()
MacroState.
createMacroStateAdapter in class SAMAdapterFactoryMacroStatepublic Adapter createStateAdapter()
State.
createStateAdapter in class SAMAdapterFactoryStatepublic Adapter createTransitionAdapter()
Transition.
createTransitionAdapter in class SAMAdapterFactoryTransitionpublic Adapter createControlPortAdapter()
ControlPort.
createControlPortAdapter in class SAMAdapterFactoryControlPortpublic Adapter createDataPortAdapter()
DataPort.
createDataPortAdapter in class SAMAdapterFactoryDataPortpublic Adapter createInControlPortAdapter()
InControlPort.
createInControlPortAdapter in class SAMAdapterFactoryInControlPortpublic Adapter createInDataPortAdapter()
InDataPort.
createInDataPortAdapter in class SAMAdapterFactoryInDataPortpublic Adapter createInputPortAdapter()
InputPort.
createInputPortAdapter in class SAMAdapterFactoryInputPortpublic Adapter createOutControlPortAdapter()
OutControlPort.
createOutControlPortAdapter in class SAMAdapterFactoryOutControlPortpublic Adapter createOutDataPortAdapter()
OutDataPort.
createOutDataPortAdapter in class SAMAdapterFactoryOutDataPortpublic Adapter createOutputPortAdapter()
OutputPort.
createOutputPortAdapter in class SAMAdapterFactoryOutputPortpublic Adapter createPortAdapter()
Port.
createPortAdapter in class SAMAdapterFactoryPortpublic Adapter createMultiPortAdapter()
MultiPort.
createMultiPortAdapter in class SAMAdapterFactoryMultiPortpublic Adapter createCompositionAdapter()
Composition.
createCompositionAdapter in class SAMAdapterFactoryCompositionpublic Adapter createControlFlowAdapter()
ControlFlow.
createControlFlowAdapter in class SAMAdapterFactoryControlFlowpublic Adapter createDataFlowAdapter()
DataFlow.
createDataFlowAdapter in class SAMAdapterFactoryDataFlowpublic Adapter createDataStoreAdapter()
DataStore.
createDataStoreAdapter in class SAMAdapterFactoryDataStorepublic Adapter createDecompositionAdapter()
Decomposition.
createDecompositionAdapter in class SAMAdapterFactoryDecompositionpublic Adapter createFlowAdapter()
Flow.
createFlowAdapter in class SAMAdapterFactoryFlowpublic Adapter createSynchronisationGateAdapter()
SynchronisationGate.
createSynchronisationGateAdapter in class SAMAdapterFactorySynchronisationGatepublic Adapter createSystemAdapter()
System.
createSystemAdapter in class SAMAdapterFactorySystempublic Adapter createModelAdapter()
Model.
createModelAdapter in class SAMAdapterFactoryModelpublic Adapter createModelContentAdapter()
ModelContent.
createModelContentAdapter in class SAMAdapterFactoryModelContentpublic Adapter createIdentifiedItemAdapter()
IdentifiedItem.
createIdentifiedItemAdapter in class SAMAdapterFactoryIdentifiedItempublic Adapter createNamedItemAdapter()
NamedItem.
createNamedItemAdapter in class SAMAdapterFactoryNamedItempublic void dispose()
dispose in interface IDisposable
|
SAM | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.