[oXygen-user] Add static function name list for auto-completion in XQuery

Florent Georges
Tue Jun 16 13:30:57 CDT 2015


  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

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
> 
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
> 

_______________________________________________
oXygen-user mailing list

http://www.oxygenxml.com/mailman/listinfo/oxygen-user


 
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20150616/c18ff485/attachment.html>


More information about the oXygen-user mailing list