|Adding Global Variable [message #446267]
||Fri, 31 July 2009 21:34
| Lon B
Registered: July 2009
I'd like to create an eclipse plug-in that adds support for a new global |
template variable. For instance "user e-mail". I'm easily able to create
a plug-in that adds template variables, but only within specific contexts
(such as 'java' or 'javadoc').
One place in particular where I want to access my new global variable is
within Java > Code Style > Code Templates.
So, I have several questions:
1. Is there some easy way to add the global template variable?
2. Otherwise, via my plug-in, I'm extending the
'org.eclipse.ui.editors.templates' extension point. I set my resolve to a
class that resolves the new variable. However, I must set a
contextTypeId. Again, if I set something like 'java' it works, but then
it's not globally accessible. I can't find any documentation on lists of
available contextTypeIds. I've tried guessing "global", "text", etc. none
seem to work.
Any help would be great appreciated!!
Powered by FUDForum
. Page generated in 0.12717 seconds