Reputation: 133
I have my own file creation wizard, where in I accept file name from user. on Finish of wizard I want to generate a JSP using templates provided by eclipse or those which are set from preferences. How can i achieve this ? plz help.
Thanks, Rahul
Upvotes: 0
Views: 353
Reputation: 3552
Take a look at NewJSPTemplatesWizardPage
and NewJSPWizard
.
The actual code to retrieve the templates is
TemplateStore fTemplateStore = JSPUIPlugin.getDefault().getTemplateStore();
fTemplateStore.getTemplates(TemplateContextTypeIdsJSP.NEW);
Upvotes: 1