Eclipse XQuery Editor – What’s going on ?

/* Will be some what Greek to someone who hasn’t worked with Eclipse, so you have been warned */

Yes, some must be wondering on this. But it all comes to the fact that planning a software project is the hardest part of the procedure, and that I was having a hectic period for last 2 weeks because of my academic stuff. But it’s settling to a steady phase now and I’m having some time to start coding again after a while. Also about planning of the project, my mentor and I talked heavily on the best and easiest path to take by using already existing resources such as the existing XPath parser (which is mostly done by David himself) and XSL plugin.

So now what I’m trying to do now is (and somewhat stuck at),

1) Partition the editor into content types.

2) Use existing content types to read patterns such as XML.

3) Create parsers for XPath2 and XQuery content types.

4) Make AST out of these 2 new content types to do more fancy stuff like content assistance

IMHO these 4 steps are the heart of this plug-in since almost all other fancy UI stuff are based on the success of this. In order to implement those so called fancy UI stuff I will be extending the Structured Source Editor(SSE) since it’s the best course of action for a XML editor.

Another factor that has been lagging the speed of this project is the lack of documentation for SSE and how to make partitioning based on content types. Best support materials I found that could be used practically were few slides from EclipseCon and other editor plugins similar to this such as XSL, XPath, JSP and PHP editors, which David helped a lot suggesting and finding them. It was somewhat hard at first to comprehend the structure of SSE but reviewing these existing plugins helped it.

I’ve created the project at SourceForge Eclipse incubator for now and you can check it out from there as the project goes and I will use this post series to bring news of the progress of my new buddy.

ViewCVS: eclipse-incub.cvs.sourceforge.net/eclipse-incub/org.eclipse.wst.xquery

CVS: eclipse-incub.cvs.sourceforge.net/cvsroot/eclipse-incub/org.eclipse.wst.xquery

More News: http://wiki.eclipse.org/New_Eclipse_Plugin_for_XQuery

Tagged , , ,

7 thoughts on “Eclipse XQuery Editor – What’s going on ?

  1. You might be interested in my ANTLR based XQuery parser: http://code.google.com/p/xqpretty

  2. […] Buddhika Lakanth Semage: Eclipse XQuery Editor – What’s going on ? […]

  3. […] Buddhika Lakanth Semage: Eclipse XQuery Editor – What’s going on ? […]

  4. Laknath says:

    @Martin Probst Thanks for the link. This looks cool.

  5. Nitin Dahyabhai says:

    So did you end up replacing the existing partitioner or using a different partitioning?

  6. Laknath says:

    @Nitin Dahyabhai I made a partitioner by extending the XML one, similar to how XSL plugin has done. Is there any other way ?

  7. Rémi says:

    Hey !

    I am using XQDT from http://www.xqdt.org/ .

    Did you have a look at this plugin which works quite well ? Or will we have to choose soon which xquery plugin we’ll have to install ;) ?

    Rémi

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>