schema.compareFilters.exsd Maven / Gradle / Ivy
This extension point is for internal use only.<br/>
This extension point allows a plug-in to register a compare filter
for specific content types. The filter will be exposed as a
toggle action in the compare viewer and can be used to customize how
differences are calculated when comparing documents as well as affect the
calculation of structural differences. The extension point must
implement the interface <samp>org.eclipse.compare.ICompareFilter</samp>.
For the filter to affect the calculation of structural differences, the structure creator must extend
<samp>org.eclipse.compare.structuremergeviewer.StructureCreator</samp>.
Internal use only
a fully qualified identifier of the target extension point
an optional identifier of the extension instance
an optional name of the extension instance
Internal use only
A unique identifier that can be used to reference the filter. It will also be used as the action id for the toggle action added to the compare viewer
The command id of the toggle action added to the compare viewer
a comma separated list of file extensions e.g. "java, txt"
Implementation of ICompareFilter.
A translatable label that will be used in the UI for this filter.
A translatable label that will be used in the UI for this filter.
A translatable label that will be used in the UI for this filter.
A translatable label that will be used in the UI for this filter.
A translatable label that will be used in the UI for this filter.
A translatable label that will be used in the UI for this filter.
A translatable label that will be used in the UI for this filter.
An image that will be used in the UI for this filter.
Internal use only.<br/>
A <code>contentTypeBinding</code> binds a compare filter 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 filter defined using the <code>filter</code> element of this extension point (i.e. <code>org.eclipse.compare.compareFilters</code>)
[Enter the first release in which this extension point appears.]
The following is an example of a compare filter
for example files (extensions ".example" and ".example2") and
the text content type:
<p>
<pre>
<extension
point="org.eclipse.compare.compareFilters">
<filter
id="com.example.IgnorePrefixId"
class="com.example.IgnorePrefix"
extensions="example,example2"
definitionId="com.example.IgnorePrefixCommand"
filter.description="Ignore Columns 1-6"
filter.label="Ignore Prefix"
filter.image="/icons/ignorePrefix.gif"
filter.tooltip="Ignore Prefix">
</filter>
<contentTypeBinding
contentTypeId="org.eclipse.core.runtime.text"
filterId="com.example.IgnorePrefixId">
</contentTypeBinding>
</extension>
</pre>
</p>
The contributed class must implement <samp>org.eclipse.compare.ICompareFilter</samp>. For the filter to affect the calculation of structural differences, the structure creator must extend <samp>org.eclipse.compare.structuremergeviewer.StructureCreator</samp>.
[Enter information about supplied implementation of this extension point.]
Copyright (c) 2013 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>