Traceability

org.topcased.traceability.hmi.providers
Class TtmModelerProviderAdapterFactory

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
      extended by ttm.util.TtmAdapterFactory
          extended by org.topcased.traceability.hmi.providers.TtmModelerProviderAdapterFactory
All Implemented Interfaces:
AdapterFactory, ComposeableAdapterFactory, IChangeNotifier, IDisposable

public class TtmModelerProviderAdapterFactory
extends TtmAdapterFactory
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
 
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

TtmModelerProviderAdapterFactory

public TtmModelerProviderAdapterFactory()
This constructs an instance.

** Generated **
Method Detail

getRootAdapterFactory

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

Specified by:
getRootAdapterFactory in interface ComposeableAdapterFactory
Returns:
the root AdapterFactory
** Generated **

setParentAdapterFactory

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

Specified by:
setParentAdapterFactory in interface ComposeableAdapterFactory
Parameters:
parentAdapterFactory - the new parent adapter factory
** Generated **

isFactoryForType

public boolean isFactoryForType(java.lang.Object type)
Description copied from class: TtmAdapterFactory
Returns whether this factory is applicable for the type of the object. This implementation returns true if the object is either the model's package or is an instance object of the model.

Specified by:
isFactoryForType in interface AdapterFactory
Overrides:
isFactoryForType in class TtmAdapterFactory
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
Parameters:
notification - the notification to fire
** Generated **

createDocumentAdapter

public Adapter createDocumentAdapter()
This creates an adapter for a Document.

Overrides:
createDocumentAdapter in class TtmAdapterFactory
Returns:
the Adapter
See Also:
Document
** Generated **

createSectionAdapter

public Adapter createSectionAdapter()
This creates an adapter for a Section.

Overrides:
createSectionAdapter in class TtmAdapterFactory
Returns:
the Adapter
See Also:
Section
** Generated **

createHierarchicalElementAdapter

public Adapter createHierarchicalElementAdapter()
This creates an adapter for a HierarchicalElement.

Overrides:
createHierarchicalElementAdapter in class TtmAdapterFactory
Returns:
the Adapter
See Also:
HierarchicalElement
** Generated **

createIdentifiedElementAdapter

public Adapter createIdentifiedElementAdapter()
This creates an adapter for a IdentifiedElement.

Overrides:
createIdentifiedElementAdapter in class TtmAdapterFactory
Returns:
the Adapter
See Also:
IdentifiedElement
** Generated **

createTextAdapter

public Adapter createTextAdapter()
This creates an adapter for a Text.

Overrides:
createTextAdapter in class TtmAdapterFactory
Returns:
the Adapter
See Also:
Text
** Generated **

createAttributeAdapter

public Adapter createAttributeAdapter()
This creates an adapter for a Attribute.

Overrides:
createAttributeAdapter in class TtmAdapterFactory
Returns:
the Adapter
See Also:
Attribute
** Generated **

createRequirementAdapter

public Adapter createRequirementAdapter()
This creates an adapter for a Requirement.

Overrides:
createRequirementAdapter in class TtmAdapterFactory
Returns:
the Adapter
See Also:
Requirement
** Generated **

createCoverLinkAdapter

public Adapter createCoverLinkAdapter()
This creates an adapter for a CoverLink.

Overrides:
createCoverLinkAdapter in class TtmAdapterFactory
Returns:
the Adapter
See Also:
CoverLink
** Generated **

createNavigationLinkAdapter

public Adapter createNavigationLinkAdapter()
This creates an adapter for a NavigationLink.

Overrides:
createNavigationLinkAdapter in class TtmAdapterFactory
Returns:
the Adapter
See Also:
NavigationLink
** Generated **

createAbstractLinkAdapter

public Adapter createAbstractLinkAdapter()
This creates an adapter for a AbstractLink.

Overrides:
createAbstractLinkAdapter in class TtmAdapterFactory
Returns:
the Adapter
See Also:
AbstractLink
** Generated **

createProjectAdapter

public Adapter createProjectAdapter()
This creates an adapter for a Project.

Overrides:
createProjectAdapter in class TtmAdapterFactory
Returns:
the Adapter
See Also:
Project
** Generated **

createElementAdapter

public Adapter createElementAdapter()
This creates an adapter for a Element.

Overrides:
createElementAdapter in class TtmAdapterFactory
Returns:
the Adapter
See Also:
Element
** Generated **

createRuleInstanceAdapter

public Adapter createRuleInstanceAdapter()
This creates an adapter for a RuleInstance.

Overrides:
createRuleInstanceAdapter in class TtmAdapterFactory
Returns:
the Adapter
See Also:
RuleInstance
** Generated **

createAttributeOwnerAdapter

public Adapter createAttributeOwnerAdapter()
This creates an adapter for a AttributeOwner.

Overrides:
createAttributeOwnerAdapter in class TtmAdapterFactory
Returns:
the Adapter
See Also:
AttributeOwner
** Generated **

createRuleAdapter

public Adapter createRuleAdapter()
This creates an adapter for a Rule.

Overrides:
createRuleAdapter in class TtmAdapterFactory
Returns:
the Adapter
See Also:
Rule
** Generated **

createCoverageResultAdapter

public Adapter createCoverageResultAdapter()
This creates an adapter for a CoverageResult.

Overrides:
createCoverageResultAdapter in class TtmAdapterFactory
Returns:
the Adapter
See Also:
CoverageResult
** Generated **

createCoverPointAdapter

public Adapter createCoverPointAdapter()
This creates an adapter for a CoverPoint.

Overrides:
createCoverPointAdapter in class TtmAdapterFactory
Returns:
the Adapter
See Also:
CoverPoint
** Generated **

dispose

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

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

Traceability

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