0

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

roul ze
  • 133
  • 1
  • 9

1 Answers1

1

Take a look at NewJSPTemplatesWizardPage and NewJSPWizard.

The actual code to retrieve the templates is

TemplateStore fTemplateStore = JSPUIPlugin.getDefault().getTemplateStore();
fTemplateStore.getTemplates(TemplateContextTypeIdsJSP.NEW);
tkotisis
  • 3,442
  • 25
  • 30