I am developing a plugin which gives me access to the editor templates inside eclipse.
The ones I'd like access to are those access by going to Window -> Preferences -> Java -> Editor -> Templates
I have already tried the solutions given on these links:
Eclipse: Accessing a editor template from plugin code
The solutions given in the links above give access to the templates which one accesses by going to Window -> Preferences -> Java -> Code Style -> Code Templates, which I don't want.
Add Java code template programmatically
Also, I looked at the source of JavaTemplatePreferencePage.java in order to find some code that I could use or probably get a hint from, but I didn't find anything useful.