I'm writing a custom XML editor for our project and want to add support for templates. I.e when the user writes "<ab:mytag
" and presses ctrl + space they get the option of inserting a chunk of text with a default/dummy parameters.
But this should be available only in the XML editor. How would I go about this?
Clarification: The templates I'm talking about are the ones available when you write for example "syso" in your java editor and press ctrl + space. In preferences you can add your own templates. What I want to do is do define my own templates, for my own XML tags, but I want to do this in the code and have it only effect my editor