Installing live templates

How can I install live templates from my plugin?


0
Avatar
Permanently deleted user

Is it possible?

0

It is possible.
Please take a look at this part of ruby plugin:
http://svn.jetbrains.org/idea/Trunk/ruby/src/org/jetbrains/plugins/ruby/ruby/templates/


In between: is it possible to escape the dollar sign in live templates?

0
Avatar
Permanently deleted user

Thanks alot for the code samples.

Have a small problem though...
In the method called loadTemplates() this line is problematic:
final TemplateSettings templateSettings = TemplateSettings.getInstance();
because templateSettings become null and later on my loading crashes.

How can I fix this?

0
Avatar
Permanently deleted user

Ok, I noticed that my sandbox was version 6.04 so when I compiled the plugin and used Selena m1 it worked perfectly. I guess my plugin will not work with IDEA 6 if I use this method...

How can I upgrade my sandbox to use the Selena branch?

0

请先登录再写评论。