Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[wtp-incubator-dev] Re: Asking help with XQDT plugin for eclipse

I've forwarded this question onto the wtp-incubator mailing list, so that the main XQuery plugin developers can answer the question.

Also if there are any enhacments that you need you should open a bug in the WTP Incubator's XQuery component on eclipse bugzilla.

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=WTP%20Incubator

Dave

Belaid Errahal wrote:
Hi Mr. David Carver.
First I take some freedom to send you this mail.
I've read lots of your post in the http://intellectualcramps.blogspot.com/ blog

you will excuse me for my very bad english ;)
here is my problem :
I am a developper and I was asked to look for some useful tool to help us (my team) to enhance our productivity in xml/xsl/xquery development using eclipse. After many search on the web I've found the *XQDT plugin* which seems to be usefull when using xquery.
but it has some limitations
what I want is :
- autocompletion and code assist of xquery code (granted with XQDT ;) )
- validation of xquery code (Granted also with XQDT)

But this works only inside an XQuery Project :
-----------------------------------------------------------------
If I try to open and xml or xsl document with the XQDT editor, the autocomplition does not work --> so I have to add **.xml* and **.xsl* to the content type of 'XQuery source editor' using "*window->preference->general->content type*" Now if I try to put some xquery code inside some tag of an xml file, the autocompletion works fine but only with 'XQuery source editor' !!

Let's move the the the validation :
Now if I'm in a java project, and i try to open an xml file with "XQuery source editor", the auto completion works fine, but there is no validation of my xquery code --> So i Have to modify my *.project* file and add this :
*/<natures>
        <nature>org.xqdt.core.nature</nature>
 </natures>/*

then my .project contains both natures : java and xqdt, and the validation works fine ;)
*/<natures>
        <nature>org.eclipse.jdt.core.javanature</nature>
    </natures>
    <natures>
        <nature>org.xqdt.core.nature</nature>
    </natures>/*

Till now i have no problems, but when using "XQuery source editor", i can't get the xml autoCompletion and validation (based on a xml catalog), and also i cant get the xsl validation and code assist based on templates defined inside the XSL editor

I try to read the source code of the XQDT PLUGIN but i have no idea about plugin development. i know that plugin developement is based on what we call "extension and extension point" but i don't know how to My idea is to add some extension and call for extension point defined by the XML and XSL editors (org.eclipse.wst.xsl.ui, ......)


So plz can you help me te customize this plugin -> to be able to use all it's features along with the XML and XSL editors (code assist and validation)

I have spent 4 days looking for solution but in vain


Iam waiting for your answer

Friendly,
*Belaid E.*




Back to the top