Sub Merge Extenders
Identifier:
com.ibm.xtools.comparemerge.ui.submergeExtenders
Since:
7.0
Description:
This extension point allows a plug-in to register submerge extenders and participate in sub merge activities.
The extender is expected to implementcom.ibm.xtools.comparemerge.ui.submerge.ISubMergeExtender
or extend com.ibm.xtools.comparemerge.ui.submerge.TextSubMergeExtender.
If the extenders can merge the given changed data, then it will be asked to decorate its menu item,
spcify the registered Eclipse content type or use its custom merge viewer that implement
org.eclipse.compare.IViewerCreator interface,
create its ICompareInput object and convert the merged result to merged value object.
Configuration Markup:
<!ELEMENT extension (submergeExtender+)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT submergeExtender EMPTY>
<!ATTLIST submergeExtender
id CDATA #REQUIRED
class CDATA #REQUIRED
contentTypeId CDATA #REQUIRED>
- id - a unique identifier that can be used to reference this sub merge extender
- class - name of a class that implements com.ibm.xtools.comparemerge.ui.submerge.ISubMergeExtender
- contentTypeId - The content type id
Examples:
The following is an example of a sub merge extender extension.
<extension
point="com.ibm.xtools.comparemerge.ui.submergeExtenders">
<submergeExtender
class="com.ibm.xtools.comparemerge.ui.submerge.JavaSourceSubMergeExtender"
id="javaSourceSubMergeExtender"/>
</extension>
API Information:
The value of the class attribute must implement the interface
com.ibm.xtools.comparemerge.ui.submerge.ISubMergeExtender.
Supplied Implementation:
The TextSubMergeExtender class is a good convinience base class for extender that work on text data.
Copyright (c) 2004, 2018 Model RealTime, HCL and others. All Rights Reserved.