Structure Merge 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>
- point - a fully qualified identifier of the target extension point
- id - an optional identifier of the extension instance
- name - an optional name of the extension instance
<!ELEMENT viewer EMPTY>
<!ATTLIST viewer
id CDATA #REQUIRED
class CDATA #REQUIRED
extensions CDATA #REQUIRED
label CDATA #IMPLIED>
- id - a unique identifier that can be used to reference the viewer
- class - a fully qualified name of a class that implements a factory for the
structure merge viewer and implements org.eclipse.compare.IViewerCreator
- extensions - a comma separated list of file extensions e.g. "zip, jar"
- label - Since 3.5. A translatable label that will be used in the UI for this viewer.
<!ELEMENT contentTypeBinding EMPTY>
<!ATTLIST contentTypeBinding
contentTypeId IDREF #REQUIRED
structureMergeViewerId IDREF #REQUIRED>
A contentTypeBinding
binds a structure merge viewer to a content type.
- contentTypeId - The id of a content type defined using the
org.eclipse.core.contenttype.contentTypes
extension point.
- structureMergeViewerId - The id of a structure merge viewer defined using the
viewer
element of this extension point (i.e. org.eclipse.compare.structureMergeViewers
)
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"
label="Binary Compare"
/>
</extension>
API Information:
The contributed class must implement org.eclipse.compare.IViewerCreator
Supplied Implementation:
The Compare UI plugin defines a structure compare
viewer for zip archives.
Copyright (c) 2000, 2011 IBM Corporation and others.
This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html/
SPDX-License-Identifier: EPL-2.0