|
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 ComposeableAdapterFactory
public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory)
setParentAdapterFactory
in interface ComposeableAdapterFactory
public boolean isFactoryForType(java.lang.Object type)
isFactoryForType
in interface AdapterFactory
isFactoryForType
in class SAMAdapterFactory
type
- the type to test
public Adapter adapt(Notifier notifier, java.lang.Object type)
adapt
in interface AdapterFactory
adapt
in class AdapterFactoryImpl
notifier
- the notifiertype
- the object to adapt
public java.lang.Object adapt(java.lang.Object object, java.lang.Object type)
adapt
in interface AdapterFactory
adapt
in class AdapterFactoryImpl
object
- the object to adapttype
- the type to adapt
public void addListener(INotifyChangedListener notifyChangedListener)
addListener
in interface IChangeNotifier
notifyChangedListener
- the listener to addpublic void removeListener(INotifyChangedListener notifyChangedListener)
removeListener
in interface IChangeNotifier
notifyChangedListener
- the listener to removepublic void fireNotifyChanged(Notification notification)
changeNotifier
and to
parentAdapterFactory
.
fireNotifyChanged
in interface IChangeNotifier
public Adapter createAbstractStateAdapter()
AbstractState
.
createAbstractStateAdapter
in class SAMAdapterFactory
AbstractState
public Adapter createAutomatonAdapter()
Automaton
.
createAutomatonAdapter
in class SAMAdapterFactory
Automaton
public Adapter createInitialStateAdapter()
InitialState
.
createInitialStateAdapter
in class SAMAdapterFactory
InitialState
public Adapter createMacroStateAdapter()
MacroState
.
createMacroStateAdapter
in class SAMAdapterFactory
MacroState
public Adapter createStateAdapter()
State
.
createStateAdapter
in class SAMAdapterFactory
State
public Adapter createTransitionAdapter()
Transition
.
createTransitionAdapter
in class SAMAdapterFactory
Transition
public Adapter createControlPortAdapter()
ControlPort
.
createControlPortAdapter
in class SAMAdapterFactory
ControlPort
public Adapter createDataPortAdapter()
DataPort
.
createDataPortAdapter
in class SAMAdapterFactory
DataPort
public Adapter createInControlPortAdapter()
InControlPort
.
createInControlPortAdapter
in class SAMAdapterFactory
InControlPort
public Adapter createInDataPortAdapter()
InDataPort
.
createInDataPortAdapter
in class SAMAdapterFactory
InDataPort
public Adapter createInputPortAdapter()
InputPort
.
createInputPortAdapter
in class SAMAdapterFactory
InputPort
public Adapter createOutControlPortAdapter()
OutControlPort
.
createOutControlPortAdapter
in class SAMAdapterFactory
OutControlPort
public Adapter createOutDataPortAdapter()
OutDataPort
.
createOutDataPortAdapter
in class SAMAdapterFactory
OutDataPort
public Adapter createOutputPortAdapter()
OutputPort
.
createOutputPortAdapter
in class SAMAdapterFactory
OutputPort
public Adapter createPortAdapter()
Port
.
createPortAdapter
in class SAMAdapterFactory
Port
public Adapter createMultiPortAdapter()
MultiPort
.
createMultiPortAdapter
in class SAMAdapterFactory
MultiPort
public Adapter createCompositionAdapter()
Composition
.
createCompositionAdapter
in class SAMAdapterFactory
Composition
public Adapter createControlFlowAdapter()
ControlFlow
.
createControlFlowAdapter
in class SAMAdapterFactory
ControlFlow
public Adapter createDataFlowAdapter()
DataFlow
.
createDataFlowAdapter
in class SAMAdapterFactory
DataFlow
public Adapter createDataStoreAdapter()
DataStore
.
createDataStoreAdapter
in class SAMAdapterFactory
DataStore
public Adapter createDecompositionAdapter()
Decomposition
.
createDecompositionAdapter
in class SAMAdapterFactory
Decomposition
public Adapter createFlowAdapter()
Flow
.
createFlowAdapter
in class SAMAdapterFactory
Flow
public Adapter createSynchronisationGateAdapter()
SynchronisationGate
.
createSynchronisationGateAdapter
in class SAMAdapterFactory
SynchronisationGate
public Adapter createSystemAdapter()
System
.
createSystemAdapter
in class SAMAdapterFactory
System
public Adapter createModelAdapter()
Model
.
createModelAdapter
in class SAMAdapterFactory
Model
public Adapter createModelContentAdapter()
ModelContent
.
createModelContentAdapter
in class SAMAdapterFactory
ModelContent
public Adapter createIdentifiedItemAdapter()
IdentifiedItem
.
createIdentifiedItemAdapter
in class SAMAdapterFactory
IdentifiedItem
public Adapter createNamedItemAdapter()
NamedItem
.
createNamedItemAdapter
in class SAMAdapterFactory
NamedItem
public 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.