Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse Plug-in Developer Guide
Previous Page Home Next Page

Structure Creators


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

Configuration Markup:

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

<!ATTLIST extension





  • point - a fully qualified identifier of the target extension point
  • id - an optional identifier of the extension instance
  • name - an optional name of the extension instance

<!ELEMENT structureCreator EMPTY>

<!ATTLIST structureCreator

id         CDATA #REQUIRED

class      CDATA #REQUIRED

extensions CDATA #IMPLIED


  • id - a unique identifier that can be used to reference the structure creator
  • class - a fully qualified name of a class that implements
  • extensions - a comma separated list of file extensions e.g. "java, properties"

<!ELEMENT contentTypeBinding EMPTY>

<!ATTLIST contentTypeBinding

contentTypeId      IDREF #REQUIRED

structureCreatorId IDREF #REQUIRED


A contentTypeBinding binds a structure creator to a content type.

  • contentTypeId - The id of a content type defined using the org.eclipse.core.contenttype.contentTypes extension point.
  • structureCreatorId - The id of a structure creator defined using the structureCreator element of this extension point (i.e.

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

<extension point = 

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

Copyright (c) 2000, 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

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire