Package de.uka.ipd.sdq.stoex.provider
Class StoexItemProviderAdapterFactory
- java.lang.Object
-
- org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
-
- de.uka.ipd.sdq.stoex.util.StoexAdapterFactory
-
- de.uka.ipd.sdq.stoex.provider.StoexItemProviderAdapterFactory
-
- All Implemented Interfaces:
AdapterFactory
,ComposeableAdapterFactory
,IChangeNotifier
,IDisposable
public class StoexItemProviderAdapterFactory extends StoexAdapterFactory 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 tofireNotifyChanged
. The adapters also support Eclipse property sheets. Note that most of the adapters are shared among multiple instances.- Generated class or method.
-
-
Field Summary
Fields Modifier and Type Field Description protected BooleanOperatorExpressionItemProvider
booleanOperatorExpressionItemProvider
This keeps track of the one adapter used for allBooleanOperatorExpression
instances.protected BoolLiteralItemProvider
boolLiteralItemProvider
This keeps track of the one adapter used for allBoolLiteral
instances.protected IChangeNotifier
changeNotifier
This is used to implementIChangeNotifier
.protected CompareExpressionItemProvider
compareExpressionItemProvider
This keeps track of the one adapter used for allCompareExpression
instances.static String
copyright
protected DoubleLiteralItemProvider
doubleLiteralItemProvider
This keeps track of the one adapter used for allDoubleLiteral
instances.protected FunctionLiteralItemProvider
functionLiteralItemProvider
This keeps track of the one adapter used for allFunctionLiteral
instances.protected IfElseExpressionItemProvider
ifElseExpressionItemProvider
This keeps track of the one adapter used for allIfElseExpression
instances.protected IntLiteralItemProvider
intLiteralItemProvider
This keeps track of the one adapter used for allIntLiteral
instances.protected NamespaceReferenceItemProvider
namespaceReferenceItemProvider
This keeps track of the one adapter used for allNamespaceReference
instances.protected NegativeExpressionItemProvider
negativeExpressionItemProvider
This keeps track of the one adapter used for allNegativeExpression
instances.protected NotExpressionItemProvider
notExpressionItemProvider
This keeps track of the one adapter used for allNotExpression
instances.protected ComposedAdapterFactory
parentAdapterFactory
This keeps track of the root adapter factory that delegates to this adapter factory.protected ParenthesisItemProvider
parenthesisItemProvider
This keeps track of the one adapter used for allParenthesis
instances.protected PowerExpressionItemProvider
powerExpressionItemProvider
This keeps track of the one adapter used for allPowerExpression
instances.protected ProbabilityFunctionLiteralItemProvider
probabilityFunctionLiteralItemProvider
This keeps track of the one adapter used for allProbabilityFunctionLiteral
instances.protected ProductExpressionItemProvider
productExpressionItemProvider
This keeps track of the one adapter used for allProductExpression
instances.protected RandomVariableItemProvider
randomVariableItemProvider
This keeps track of the one adapter used for allRandomVariable
instances.protected StringLiteralItemProvider
stringLiteralItemProvider
This keeps track of the one adapter used for allStringLiteral
instances.protected Collection<Object>
supportedTypes
This keeps track of all the supported types checked byisFactoryForType
.protected TermExpressionItemProvider
termExpressionItemProvider
This keeps track of the one adapter used for allTermExpression
instances.protected VariableItemProvider
variableItemProvider
This keeps track of the one adapter used for allVariable
instances.protected VariableReferenceItemProvider
variableReferenceItemProvider
This keeps track of the one adapter used for allVariableReference
instances.-
Fields inherited from class de.uka.ipd.sdq.stoex.util.StoexAdapterFactory
modelPackage, modelSwitch
-
-
Constructor Summary
Constructors Constructor Description StoexItemProviderAdapterFactory()
This constructs an instance.
-
Method Summary
-
Methods inherited from class de.uka.ipd.sdq.stoex.util.StoexAdapterFactory
createAbstractNamedReferenceAdapter, createAdapter, createAtomAdapter, createBooleanExpressionAdapter, createComparisonAdapter, createEObjectAdapter, createExpressionAdapter, createIfElseAdapter, createNumericLiteralAdapter, createPowerAdapter, createProductAdapter, createTermAdapter, createUnaryAdapter, createUnitCarryingElementAdapter
-
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
-
copyright
public static final String copyright
- See Also:
- Constant Field Values
- Generated class or method.
-
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 implementIChangeNotifier
.- Generated class or method.
-
supportedTypes
protected Collection<Object> supportedTypes
This keeps track of all the supported types checked byisFactoryForType
.- Generated class or method.
-
variableReferenceItemProvider
protected VariableReferenceItemProvider variableReferenceItemProvider
This keeps track of the one adapter used for allVariableReference
instances.- Generated class or method.
-
namespaceReferenceItemProvider
protected NamespaceReferenceItemProvider namespaceReferenceItemProvider
This keeps track of the one adapter used for allNamespaceReference
instances.- Generated class or method.
-
variableItemProvider
protected VariableItemProvider variableItemProvider
This keeps track of the one adapter used for allVariable
instances.- Generated class or method.
-
termExpressionItemProvider
protected TermExpressionItemProvider termExpressionItemProvider
This keeps track of the one adapter used for allTermExpression
instances.- Generated class or method.
-
productExpressionItemProvider
protected ProductExpressionItemProvider productExpressionItemProvider
This keeps track of the one adapter used for allProductExpression
instances.- Generated class or method.
-
probabilityFunctionLiteralItemProvider
protected ProbabilityFunctionLiteralItemProvider probabilityFunctionLiteralItemProvider
This keeps track of the one adapter used for allProbabilityFunctionLiteral
instances.- Generated class or method.
-
parenthesisItemProvider
protected ParenthesisItemProvider parenthesisItemProvider
This keeps track of the one adapter used for allParenthesis
instances.- Generated class or method.
-
intLiteralItemProvider
protected IntLiteralItemProvider intLiteralItemProvider
This keeps track of the one adapter used for allIntLiteral
instances.- Generated class or method.
-
doubleLiteralItemProvider
protected DoubleLiteralItemProvider doubleLiteralItemProvider
This keeps track of the one adapter used for allDoubleLiteral
instances.- Generated class or method.
-
compareExpressionItemProvider
protected CompareExpressionItemProvider compareExpressionItemProvider
This keeps track of the one adapter used for allCompareExpression
instances.- Generated class or method.
-
boolLiteralItemProvider
protected BoolLiteralItemProvider boolLiteralItemProvider
This keeps track of the one adapter used for allBoolLiteral
instances.- Generated class or method.
-
stringLiteralItemProvider
protected StringLiteralItemProvider stringLiteralItemProvider
This keeps track of the one adapter used for allStringLiteral
instances.- Generated class or method.
-
powerExpressionItemProvider
protected PowerExpressionItemProvider powerExpressionItemProvider
This keeps track of the one adapter used for allPowerExpression
instances.- Generated class or method.
-
booleanOperatorExpressionItemProvider
protected BooleanOperatorExpressionItemProvider booleanOperatorExpressionItemProvider
This keeps track of the one adapter used for allBooleanOperatorExpression
instances.- Generated class or method.
-
notExpressionItemProvider
protected NotExpressionItemProvider notExpressionItemProvider
This keeps track of the one adapter used for allNotExpression
instances.- Generated class or method.
-
negativeExpressionItemProvider
protected NegativeExpressionItemProvider negativeExpressionItemProvider
This keeps track of the one adapter used for allNegativeExpression
instances.- Generated class or method.
-
functionLiteralItemProvider
protected FunctionLiteralItemProvider functionLiteralItemProvider
This keeps track of the one adapter used for allFunctionLiteral
instances.- Generated class or method.
-
ifElseExpressionItemProvider
protected IfElseExpressionItemProvider ifElseExpressionItemProvider
This keeps track of the one adapter used for allIfElseExpression
instances.- Generated class or method.
-
randomVariableItemProvider
protected RandomVariableItemProvider randomVariableItemProvider
This keeps track of the one adapter used for allRandomVariable
instances.- Generated class or method.
-
-
Method Detail
-
createVariableReferenceAdapter
public Adapter createVariableReferenceAdapter()
This creates an adapter for aVariableReference
.- Overrides:
createVariableReferenceAdapter
in classStoexAdapterFactory
- Returns:
- the new adapter.
- See Also:
VariableReference
- Generated class or method.
-
createNamespaceReferenceAdapter
public Adapter createNamespaceReferenceAdapter()
This creates an adapter for aNamespaceReference
.- Overrides:
createNamespaceReferenceAdapter
in classStoexAdapterFactory
- Returns:
- the new adapter.
- See Also:
NamespaceReference
- Generated class or method.
-
createVariableAdapter
public Adapter createVariableAdapter()
This creates an adapter for aVariable
.- Overrides:
createVariableAdapter
in classStoexAdapterFactory
- Returns:
- the new adapter.
- See Also:
Variable
- Generated class or method.
-
createTermExpressionAdapter
public Adapter createTermExpressionAdapter()
This creates an adapter for aTermExpression
.- Overrides:
createTermExpressionAdapter
in classStoexAdapterFactory
- Returns:
- the new adapter.
- See Also:
TermExpression
- Generated class or method.
-
createProductExpressionAdapter
public Adapter createProductExpressionAdapter()
This creates an adapter for aProductExpression
.- Overrides:
createProductExpressionAdapter
in classStoexAdapterFactory
- Returns:
- the new adapter.
- See Also:
ProductExpression
- Generated class or method.
-
createProbabilityFunctionLiteralAdapter
public Adapter createProbabilityFunctionLiteralAdapter()
This creates an adapter for aProbabilityFunctionLiteral
.- Overrides:
createProbabilityFunctionLiteralAdapter
in classStoexAdapterFactory
- Returns:
- the new adapter.
- See Also:
ProbabilityFunctionLiteral
- Generated class or method.
-
createParenthesisAdapter
public Adapter createParenthesisAdapter()
This creates an adapter for aParenthesis
.- Overrides:
createParenthesisAdapter
in classStoexAdapterFactory
- Returns:
- the new adapter.
- See Also:
Parenthesis
- Generated class or method.
-
createIntLiteralAdapter
public Adapter createIntLiteralAdapter()
This creates an adapter for aIntLiteral
.- Overrides:
createIntLiteralAdapter
in classStoexAdapterFactory
- Returns:
- the new adapter.
- See Also:
IntLiteral
- Generated class or method.
-
createDoubleLiteralAdapter
public Adapter createDoubleLiteralAdapter()
This creates an adapter for aDoubleLiteral
.- Overrides:
createDoubleLiteralAdapter
in classStoexAdapterFactory
- Returns:
- the new adapter.
- See Also:
DoubleLiteral
- Generated class or method.
-
createCompareExpressionAdapter
public Adapter createCompareExpressionAdapter()
This creates an adapter for aCompareExpression
.- Overrides:
createCompareExpressionAdapter
in classStoexAdapterFactory
- Returns:
- the new adapter.
- See Also:
CompareExpression
- Generated class or method.
-
createBoolLiteralAdapter
public Adapter createBoolLiteralAdapter()
This creates an adapter for aBoolLiteral
.- Overrides:
createBoolLiteralAdapter
in classStoexAdapterFactory
- Returns:
- the new adapter.
- See Also:
BoolLiteral
- Generated class or method.
-
createStringLiteralAdapter
public Adapter createStringLiteralAdapter()
This creates an adapter for aStringLiteral
.- Overrides:
createStringLiteralAdapter
in classStoexAdapterFactory
- Returns:
- the new adapter.
- See Also:
StringLiteral
- Generated class or method.
-
createPowerExpressionAdapter
public Adapter createPowerExpressionAdapter()
This creates an adapter for aPowerExpression
.- Overrides:
createPowerExpressionAdapter
in classStoexAdapterFactory
- Returns:
- the new adapter.
- See Also:
PowerExpression
- Generated class or method.
-
createBooleanOperatorExpressionAdapter
public Adapter createBooleanOperatorExpressionAdapter()
This creates an adapter for aBooleanOperatorExpression
.- Overrides:
createBooleanOperatorExpressionAdapter
in classStoexAdapterFactory
- Returns:
- the new adapter.
- See Also:
BooleanOperatorExpression
- Generated class or method.
-
createNotExpressionAdapter
public Adapter createNotExpressionAdapter()
This creates an adapter for aNotExpression
.- Overrides:
createNotExpressionAdapter
in classStoexAdapterFactory
- Returns:
- the new adapter.
- See Also:
NotExpression
- Generated class or method.
-
createNegativeExpressionAdapter
public Adapter createNegativeExpressionAdapter()
This creates an adapter for aNegativeExpression
.- Overrides:
createNegativeExpressionAdapter
in classStoexAdapterFactory
- Returns:
- the new adapter.
- See Also:
NegativeExpression
- Generated class or method.
-
createFunctionLiteralAdapter
public Adapter createFunctionLiteralAdapter()
This creates an adapter for aFunctionLiteral
.- Overrides:
createFunctionLiteralAdapter
in classStoexAdapterFactory
- Returns:
- the new adapter.
- See Also:
FunctionLiteral
- Generated class or method.
-
createIfElseExpressionAdapter
public Adapter createIfElseExpressionAdapter()
This creates an adapter for aIfElseExpression
.- Overrides:
createIfElseExpressionAdapter
in classStoexAdapterFactory
- Returns:
- the new adapter.
- See Also:
IfElseExpression
- Generated class or method.
-
createRandomVariableAdapter
public Adapter createRandomVariableAdapter()
This creates an adapter for aRandomVariable
.- Overrides:
createRandomVariableAdapter
in classStoexAdapterFactory
- Returns:
- the new adapter.
- See Also:
RandomVariable
- Generated class or method.
-
getRootAdapterFactory
public ComposeableAdapterFactory getRootAdapterFactory()
This returns the root adapter factory that contains this factory.- Specified by:
getRootAdapterFactory
in interfaceComposeableAdapterFactory
- Generated class or method.
-
setParentAdapterFactory
public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory)
This sets the composed adapter factory that contains this factory.- Specified by:
setParentAdapterFactory
in interfaceComposeableAdapterFactory
- Generated class or method.
-
isFactoryForType
public boolean isFactoryForType(Object type)
- Specified by:
isFactoryForType
in interfaceAdapterFactory
- Overrides:
isFactoryForType
in classStoexAdapterFactory
- Returns:
- whether this factory is applicable for the type of the object.
- 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 interfaceAdapterFactory
- Overrides:
adapt
in classAdapterFactoryImpl
- Generated class or method.
-
adapt
public Object adapt(Object object, Object type)
- Specified by:
adapt
in interfaceAdapterFactory
- Overrides:
adapt
in classAdapterFactoryImpl
- Generated class or method.
-
addListener
public void addListener(INotifyChangedListener notifyChangedListener)
This adds a listener.- Specified by:
addListener
in interfaceIChangeNotifier
- Generated class or method.
-
removeListener
public void removeListener(INotifyChangedListener notifyChangedListener)
This removes a listener.- Specified by:
removeListener
in interfaceIChangeNotifier
- Generated class or method.
-
fireNotifyChanged
public void fireNotifyChanged(Notification notification)
This delegates tochangeNotifier
and toparentAdapterFactory
.- Specified by:
fireNotifyChanged
in interfaceIChangeNotifier
- Generated class or method.
-
dispose
public void dispose()
This disposes all of the item providers created by this factory.- Specified by:
dispose
in interfaceIDisposable
- Generated class or method.
-
-