Prevent ProjectTemplateFactory to occur in new module action

Hi,
I registered a ProjectTemplateFactory in the plugin.xml, but the action occurs in new module action, too. Is there a way to prevent this behaviour? Thanks.

-Tim

2 comments
Comment actions Permalink

You can check WizardContext.isCreatingNewProject and return an empty array of templates from your createTemplates() method when it returns true.

0
Comment actions Permalink

Nice, thanks!

0

Please sign in to leave a comment.