schema.contentMergeViewers.exsd Maven / Gradle / Ivy
This extension point allows a plug-in to register compare/merge
viewers for specific 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
content merge viewer and implements <samp>org.eclipse.compare.IViewerCreator</samp>
a comma separated list of file extensions e.g. "java, gif"
Since 3.5. A translatable label that will be used in the UI for this viewer.
A <code>contentTypeBinding</code> binds a 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 merge viewer defined using the <code>viewer</code> element of this extension point (i.e. <code>org.eclipse.compare.contentMergeViewers</code>)
The following is an example of a compare/merge viewer
for text files (extension "txt"):
<p>
<pre>
<extension point = "org.eclipse.compare.contentMergeViewers">
<viewer
id="org.eclipse.compare.contentmergeviewer.TextMergeViewer"
class="org.eclipse.compare.internal.TextMergeViewerCreator"
extensions="txt"
label="Text Compare"
/>
</extension>
</pre>
</p>
The contributed class must implement <code>org.eclipse.compare.IViewerCreator</code>
The Compare UI plugin defines content viewers for text, binary contents, and images.
Copyright (c) 2000, 2009 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>