roul ze
roul ze

Reputation: 133

How to make use of existing JSP template provided by eclipse in my own wizard to generate JSP file?

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

Answers (1)

tkotisis
tkotisis

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

Related Questions