Adapter Factories

Identifier:
com.ibm.xtools.comparemerge.emf.adapterFactories

Description:
This extension point allows an emf model plug-in to register compare/merge adapter factory creators for specific emf model file extensions. The extension point must implement the interface com.ibm.xtools.comparemerge.emf.itemprovider.IAdapterFactoryCreator.

Configuration Markup:

<!ELEMENT extension (adapterFactoryCreator+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT adapterFactoryCreator EMPTY>

<!ATTLIST adapterFactoryCreator

id            CDATA #REQUIRED

class         CDATA #REQUIRED

contentTypeId CDATA #REQUIRED>


Examples:
The following is an example of a compare/merge adapter factory extension for the library content type:


   <extension
         point="com.ibm.xtools.comparemerge.emf.adapterFactories">
      <adapterFactoryCreator
            contentTypeId="com.ibm.xtools.comparemerge.library.libraryContentType"
            class="com.ibm.xtools.comparemerge.library.internal.viewers.LibraryAdapterFactoryCreator"
            id="libraryAdapterFactoryCreator"/>
   </extension>

The following is an example of a compare/merge adapter factory extension for the EMF content type:


   <extension
         point="com.ibm.xtools.comparemerge.emf.adapterFactories">
      <adapterFactoryCreator
            contentTypeId="com.ibm.xtools.comparemerge.emf.emfContentType"
            class="com.ibm.xtools.comparemerge.emf.itemprovider.DefaultAdapterFactoryCreator"
            id="emfAdapterFactoryCreator"/>
   </extension>

API Information:
The value of the class attribute must implement the interface com.ibm.xtools.comparemerge.emf.itemprovider.IAdapterFactoryCreator.

Supplied Implementation:
The EMF example plugin implements adapter factory creator for .lib and .uml2 file extensions.


Copyright (c) 2004, 2018 Model RealTime, HCL and others. All Rights Reserved.