[oXygen-user] Add static function name list for auto-completion in XQuery
Radu Pisoi
Wed Jun 17 00:58:53 CDT 2015
Yes, you are right about the code templates mechanism, but it is the only workaround that I know. I was thinking that you could define a code template for each external function. When you will use a such code template, you have to correct the parameters name and the prefix if necessary.
I already added an issue to our tracking system to allow an user to extend the list of XQuery functions proposed by the content completion assistant.
Regards,
Radu
--
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
On 6/16/2015 9:30 PM, Florent Georges wrote:
> Thank you Radu. It is probably because I don't know code templates
> very well, but I am not quite sure how they could help here.
>
> As far as I understand, they are fixed pieces of code, that get
> inserted via a shortcut expansion mechanism, aren't they? But I
> probably miss something.
>
> Regards,
> --
> Florent Georges
> http://fgeorges.org/
> http://h2oconsulting.be/
>
>
> Le Mardi 16 juin 2015 15h53, Radu Pisoi wrote:
>
>
>
> Hi Florent,
>
> Unfortunately, there is no specific mechanism that can be used to
> augment the list of functions proposed by the content completion
> assistant when editing an XQuery document.
>
> An alternative solution is to use the code templates support that
> can be customized for a certain document type. The addition of a new
> code template is possible by opening the 'Editor/Templates/Code
> Templates' preferences page.
>
> After you have defined your custom code templates, you can use them
> by invoking the 'Show Code Templates'(Ctrl + Shift + Space) action.
>
> More about code templates support can be found in our documentation:
> http://www.oxygenxml.com/doc/versions/17.0/ug-editor/#topics/code-templates.html
>
> Regards,
> Radu
> --
> Radu Pisoi
> <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
> http://www.oxygenxml.com <http://www.oxygenxml.com/>
>
> On 6/15/2015 5:38 PM, Florent Georges wrote:
> > Hi,
> >
> > Is there any way, in oXygen, to augment the list of function names
> > to use for auto-completion when in an XQuery editor?
> >
> > Basically, a processor can add any function to the static context.
> > So some functions can be called in a module (so should be available
> > for code completion), even with no corresponding import statement.
> >
> > I have such a list of extra functions I would like to be available
> > in oXygen when I write XQuery code (not to be evaluated, just for
> > writing code). The ideal solution woud not require having any
> > specific scenario nor processor "attached" to the file.
> >
> > Is this possible?
> >
> > Regards,
> > --
> > Florent Georges
> > http://fgeorges.org/
> > http://h2oconsulting.be/
> >
> >
> >
> >
> > _______________________________________________
> > oXygen-user mailing list
> > <mailto:>
> > http://www.oxygenxml.com/mailman/listinfo/oxygen-user
>
> >
>
> _______________________________________________
> oXygen-user mailing list
> <mailto:>
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
>
>
More information about the oXygen-user
mailing list