|
Traceability | |||||||||
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
ttm.util.TtmAdapterFactory
org.topcased.traceability.hmi.providers.TtmModelerProviderAdapterFactory
public class TtmModelerProviderAdapterFactory
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 |
---|
Fields inherited from class ttm.util.TtmAdapterFactory |
---|
modelPackage, modelSwitch |
Constructor Summary | |
---|---|
TtmModelerProviderAdapterFactory()
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 |
createAbstractLinkAdapter()
This creates an adapter for a AbstractLink . |
Adapter |
createAttributeAdapter()
This creates an adapter for a Attribute . |
Adapter |
createAttributeOwnerAdapter()
This creates an adapter for a AttributeOwner . |
Adapter |
createCoverageResultAdapter()
This creates an adapter for a CoverageResult . |
Adapter |
createCoverLinkAdapter()
This creates an adapter for a CoverLink . |
Adapter |
createCoverPointAdapter()
This creates an adapter for a CoverPoint . |
Adapter |
createDocumentAdapter()
This creates an adapter for a Document . |
Adapter |
createElementAdapter()
This creates an adapter for a Element . |
Adapter |
createHierarchicalElementAdapter()
This creates an adapter for a HierarchicalElement . |
Adapter |
createIdentifiedElementAdapter()
This creates an adapter for a IdentifiedElement . |
Adapter |
createNavigationLinkAdapter()
This creates an adapter for a NavigationLink . |
Adapter |
createProjectAdapter()
This creates an adapter for a Project . |
Adapter |
createRequirementAdapter()
This creates an adapter for a Requirement . |
Adapter |
createRuleAdapter()
This creates an adapter for a Rule . |
Adapter |
createRuleInstanceAdapter()
This creates an adapter for a RuleInstance . |
Adapter |
createSectionAdapter()
This creates an adapter for a Section . |
Adapter |
createTextAdapter()
This creates an adapter for a Text . |
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)
Returns whether this factory is applicable for the type of the object |
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 ttm.util.TtmAdapterFactory |
---|
createAdapter, 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 |
Constructor Detail |
---|
public TtmModelerProviderAdapterFactory()
Method Detail |
---|
public ComposeableAdapterFactory getRootAdapterFactory()
getRootAdapterFactory
in interface ComposeableAdapterFactory
public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory)
setParentAdapterFactory
in interface ComposeableAdapterFactory
parentAdapterFactory
- the new parent adapter factorypublic boolean isFactoryForType(java.lang.Object type)
TtmAdapterFactory
true
if the object is either the model's package or is an instance object of the model.
isFactoryForType
in interface AdapterFactory
isFactoryForType
in class TtmAdapterFactory
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
notification
- the notification to firepublic Adapter createDocumentAdapter()
Document
.
createDocumentAdapter
in class TtmAdapterFactory
Document
public Adapter createSectionAdapter()
Section
.
createSectionAdapter
in class TtmAdapterFactory
Section
public Adapter createHierarchicalElementAdapter()
HierarchicalElement
.
createHierarchicalElementAdapter
in class TtmAdapterFactory
HierarchicalElement
public Adapter createIdentifiedElementAdapter()
IdentifiedElement
.
createIdentifiedElementAdapter
in class TtmAdapterFactory
IdentifiedElement
public Adapter createTextAdapter()
Text
.
createTextAdapter
in class TtmAdapterFactory
Text
public Adapter createAttributeAdapter()
Attribute
.
createAttributeAdapter
in class TtmAdapterFactory
Attribute
public Adapter createRequirementAdapter()
Requirement
.
createRequirementAdapter
in class TtmAdapterFactory
Requirement
public Adapter createCoverLinkAdapter()
CoverLink
.
createCoverLinkAdapter
in class TtmAdapterFactory
CoverLink
public Adapter createNavigationLinkAdapter()
NavigationLink
.
createNavigationLinkAdapter
in class TtmAdapterFactory
NavigationLink
public Adapter createAbstractLinkAdapter()
AbstractLink
.
createAbstractLinkAdapter
in class TtmAdapterFactory
AbstractLink
public Adapter createProjectAdapter()
Project
.
createProjectAdapter
in class TtmAdapterFactory
Project
public Adapter createElementAdapter()
Element
.
createElementAdapter
in class TtmAdapterFactory
Element
public Adapter createRuleInstanceAdapter()
RuleInstance
.
createRuleInstanceAdapter
in class TtmAdapterFactory
RuleInstance
public Adapter createAttributeOwnerAdapter()
AttributeOwner
.
createAttributeOwnerAdapter
in class TtmAdapterFactory
AttributeOwner
public Adapter createRuleAdapter()
Rule
.
createRuleAdapter
in class TtmAdapterFactory
Rule
public Adapter createCoverageResultAdapter()
CoverageResult
.
createCoverageResultAdapter
in class TtmAdapterFactory
CoverageResult
public Adapter createCoverPointAdapter()
CoverPoint
.
createCoverPointAdapter
in class TtmAdapterFactory
CoverPoint
public void dispose()
dispose
in interface IDisposable
|
Traceability | |||||||||
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.