schema.structureMergeViewers.exsd Maven / Gradle / Ivy
This extension point allows a plug-in to register compare/merge
viewers for structural content types. The viewer is expected to
extend <samp>org.eclipse.jface.viewers.Viewer</samp>.
However, since viewers don't have a default constructor,
the extension point must implement the factory interface
for viewers <samp>org.eclipse.compare.IViewerCreator</samp>.
a fully qualified identifier of the target extension point
an optional identifier of the extension instance
an optional name of the extension instance
a unique identifier that can be used to reference the viewer
a fully qualified name of a class that implements a factory for the
structure merge viewer and implements <samp>org.eclipse.compare.IViewerCreator</samp>
a comma separated list of file extensions e.g. "zip, jar"
Since 3.5. A translatable label that will be used in the UI for this viewer.
A <code>contentTypeBinding</code> binds a structure merge viewer to a content type.
The id of a content type defined using the <code>org.eclipse.core.contenttype.contentTypes</code> extension point.
The id of a structure merge viewer defined using the <code>viewer</code> element of this extension point (i.e. <code>org.eclipse.compare.structureMergeViewers</code>)
The following is an example of compare/merge viewer
for zip files (extension "zip"):
<p>
<pre>
<extension point = "org.eclipse.compare.structureMergeViewers">
<viewer
id="org.eclipse.compare.ZipCompareViewer"
class="org.eclipse.compare.ZipCompareViewerCreator"
extensions="zip"
label="Binary Compare"
/>
</extension>
</pre>
</p>
The contributed class must implement <code>org.eclipse.compare.IViewerCreator</code>
The Compare UI plugin defines a structure compare
viewer for zip archives.
Copyright (c) 2000, 2011 IBM Corporation and others.<br>
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 <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>