Writing an XML Editor using JFace Text Framework

I am trying to write an XML Editor using JFace Text Framework. I started from the default XML Editor template created by eclipse. The editor is much more powerful than the very beginning. What I have finished during the weekend are:

  • Document Partitioning
    • Add CDATA scanner
    • Configured SourceViewConfiguration
    • Modified TagRule and a couple of classes
  • Syntax Coloring
    • Mimicked the color theme in XMLSpy, but added more colors
    • Merged some functions. Therefore a couple of classes are of no use now. Will clean them later.

I wish to add the following features:

  1. XML validation
  2. Error marker
  3. Content Assist
  4. Proposal for errors
  5. Define extension points for easy customization

I have created a project at google code. But right now it is not the timing to paste the link here. I might release it in the future.

If you are looking for reference materials about writing an editor, I recommend the following staff:

  1. Building an Eclipse Text Editor with JFace Text
    http://www.realsolve.co.uk/site/tech/jface-text.php
  2. Rinzo – Open Source XML Editor
    http://editorxml.sourceforge.net/features.html
  3. Java Developer’s Guide to Eclipse, download the CD-ROM content and find the SQL Editor sample:
    http://www.jdg2e.com/
  4. Eclipse Web Tools Platform (WTP) has an XML Editor:
    http://download.eclipse.org/webtools/downloads/
  5. HTML Editor also contains an XML editor:
    http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=EclipseHTMLEditor
This entry was posted in eclipse, java, XML and tagged , , , . Bookmark the permalink.

One Response to Writing an XML Editor using JFace Text Framework

  1. Pingback: Write Xml editor by Extending WTP Xml Editor | People Mountains People Sea

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.