StructureMerge Viewers

Identifier:
org.eclipse.compare.structureMergeViewers

Description:
This extension point allows a plug-in to register compare/merge viewers for structural content types. 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 org.eclipse.compare.IViewerCreator.

Configuration Markup:

<!ELEMENT extension (viewer* , contentTypeBinding*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT viewer EMPTY>

<!ATTLIST viewer

id         CDATA #REQUIRED

class      CDATA #REQUIRED

extensions CDATA #REQUIRED>


<!ELEMENT contentTypeBinding EMPTY>

<!ATTLIST contentTypeBinding

contentTypeId          CDATA #REQUIRED

structureMergeViewerId IDREF #REQUIRED>

A contentTypeBinding binds a structure merge viewer to a content type.



Examples:
The following is an example of compare/merge viewer for zip files (extension "zip"):


<extension point = "org.eclipse.compare.structureMergeViewers"> 
     <viewer 
         id="org.eclipse.compare.ZipCompareViewer" 
         class="org.eclipse.compare.ZipCompareViewerCreator" 
         extensions="zip" 
    /> 
</extension> 

Supplied Implementation:
The Compare UI plugin defines a structure compare viewer for zip archives.


Copyright (c) 2000, 2008 IBM Corporation and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html