Structure Creators

org.eclipse.compare.structureCreators

This extension point allows a plug-in to register a structure creator for specific content types. The structure creator is expected to create a tree of IStructureComparators for a given content. This tree is used as the input for the structural compare. The extension point must implement the interface org.eclipse.compare.structuremergeviewer.IStructureCreator.

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

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT structureCreator EMPTY>

<!ATTLIST structureCreator

id         CDATA #REQUIRED

class      CDATA #REQUIRED

extensions CDATA #IMPLIED>


<!ELEMENT contentTypeBinding EMPTY>

<!ATTLIST contentTypeBinding

contentTypeId      CDATA #REQUIRED

structureCreatorId CDATA #REQUIRED>


The following is an example of a structure creator for java files (extension "java"):

<extension point =

"org.eclipse.compare.structureCreators"

>

<structureCreator id=

"org.eclipse.compare.JavaStructureCreator"

class=

"org.eclipse.compare.JavaStructureCreator"

extensions=

"java"

/>

</extension>

The contributed class must implement org.eclipse.compare.structuremergeviewer.IStructureCreator

The Compare UI plugin defines a structure creator for zip archives.