Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Dynamically adding Java code templates
Dynamically adding Java code templates [message #954298] Mon, 22 October 2012 23:29
Zvonimir Pavlinovic is currently offline 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

Previous Topic:configure CDT with external Builder ?
Next Topic:Write plugin for eclipse(multiple wizard).
Goto Forum:
  


Current Time: Tue Sep 23 12:25:40 GMT 2014

Powered by FUDForum. Page generated in 0.01808 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software