Compare Merge Content Viewers

Identifier:
com.ibm.xtools.comparemerge.ui.compareMergeContentViewers

Description:
This extension point allows a plug-in to register compare/merge content viewers for specific file extensions. The viewer is expected to extend org.eclipse.jface.viewers.Viewer. However, since viewers don't have a default constructor, the extension point must implement the factory interface for viewers com.ibm.xtools.comparemerge.ui.internal.services.IContentViewerCreator. The viewer creator should return the interface com.ibm.xtools.comparemerge.ui.viewers.IContentViewer

Configuration Markup:

<!ELEMENT extension (viewerCreator+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT viewerCreator EMPTY>

<!ATTLIST viewerCreator

id            CDATA #REQUIRED

class         CDATA #REQUIRED

contentTypeId CDATA #REQUIRED>


Examples:
The following is an example of a compare/merge content viewer extension for EMF content type.


   <extension
         point="com.ibm.xtools.comparemerge.ui.compareMergeContentViewers">
      <viewerCreator
            contentTypeId="com.ibm.xtools.comparemerge.emf.emfContentType"
            class="com.ibm.xtools.comparemerge.emf.viewers.EMFContentViewerCreator"
            id="emfContentViewerCreator"/>
   </extension>

The following is an example of a compare/merge content viewer extension for library content type:


   <extension
         point="com.ibm.xtools.comparemerge.ui.compareMergeContentViewers">
      <viewerCreator
            contentTypeId="com.ibm.xtools.comparemerge.library.libraryContentType"
            class="com.ibm.xtools.comparemerge.library.internal.viewers.LibraryContentViewerCreator"
            id="libraryContentViewerCreator"/>
   </extension>

API Information:
The value of the class attribute must implement the interface com.ibm.xtools.comparemerge.ui.viewers.IContentViewerCreator.

Supplied Implementation:
The EMF model plugin provides a viewer creator for default structure, list and property viewers.


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