Dynamically adding Java code templates [message #954298] |
Mon, 22 October 2012 23:29 |
Zvonimir Pavlinovic Messages: 10 Registered: June 2012 |
Junior Member |
|
|
I like when Eclipse lets me jump between parameters in a method call using a Tab key. I would like my plugin to provide a similar functionality.
To be precise, I am injecting some piece of a text into the Java editor and I would like to highlight specific syntax and let the programmer jump to the next match using the Tab key. I researched a bit and saw that templates can be used (link). However, I can't find any relevant examples on the Web. So, I would need to dynamically create/register template, inject it, and possibly delete/unregister it. Does anybody have experience with this or any idea on how to do it?
[Updated on: Thu, 25 October 2012 00:59] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03293 seconds