Storage Mergers

Identifier:
org.eclipse.team.core.storageMergers

Since:
3.2

Description:
This extension point allows a plug-in to register a storage merger for specific content types. The storage merger is expected to perform a three-way merge on three input storage and write the result to an output stream. The extension point must implement the interface org.eclipse.team.core.mapping.IStorageMerger.

Configuration Markup:

<!ELEMENT extension (storageMerger* , contentTypeBinding*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT storageMerger EMPTY>

<!ATTLIST storageMerger

id         CDATA #REQUIRED

class      CDATA #REQUIRED

extensions CDATA #IMPLIED>


<!ELEMENT contentTypeBinding EMPTY>

<!ATTLIST contentTypeBinding

contentTypeId   IDREF #REQUIRED

storageMergerId IDREF #REQUIRED>


Examples:
The following is an example of a storage merger for property files (extension "properties"):


<extension point = "org.eclipse.team.core.storageMergers"> 
     <storageMerger 
         id="org.eclipse.team.internal.core.merge.PropertiesStorageMerger" 
         class="org.eclipse.team.internal.core.merge.PropertiesStorageMerger" 
         extensions="properties" 
    /> 
</extension> 

API Information:
The contributed class must implement org.eclipse.team.core.mapping.IStorageMerger

Supplied Implementation:
The Team UI plugin defines a storage merger for line oriented text files.


Copyright (c) 2005, 2008 IBM Corporation and others.
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 http://www.eclipse.org/legal/epl-v10.html