Tech Gossips

June 22, 2008

Eclipse XQuery Editor – What’s going on ?

Filed under: Eclipse, FOSS, Fun, GSoC, Java, My Activities — Laknath @ 4:53 pm
Tags: , , ,

/* 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

7 Comments »

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

    Comment by Martin Probst — June 23, 2008 @ 5:00 am | Reply

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

    Pingback by Buddhika Lakanth Semage: Eclipse XQuery Editor - What’s going on ? | Network Tools - ntoolz.net — June 23, 2008 @ 3:21 pm | Reply

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

    Pingback by John Carr: git-mirror.gnome.org | Network Tools - ntoolz.net — June 23, 2008 @ 3:47 pm | Reply

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

    Comment by Laknath — June 23, 2008 @ 6:09 pm | Reply

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

    Comment by Nitin Dahyabhai — July 6, 2008 @ 8:35 am | Reply

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

    Comment by Laknath — July 6, 2008 @ 10:08 pm | Reply

  7. 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

    Comment by Rémi — August 25, 2008 @ 1:30 pm | Reply


RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.