Adding multiple project templates

I have used the project template extension point in following way.

<projectTemplate projectType="CTAP Application" templatePath="resources/CTAP_SMS_Service_Application.zip" category="true"/>

This adds a one project template which I have archived inside the zip file, into project creation wizards.

What is the way to add multiple project templates.

2 comments
Comment actions Permalink

Hi, you can make use of com.intellij.platform.ProjectTemplatesFactory and return an array of com.intellij.platform.templates.LocalArchivedTemplate.

0
Comment actions Permalink

As a quick work around I found following as working.

 
<projectTemplate projectType="CTAP Application" templatePath="resources/CTAP_SMS_Service_Application.zip" category="true"/>
<projectTemplate projectType="CTAP Application" templatePath="resources/CTAP_USSD_Service_Application.zip" category="true"/>
  
Adding projectTemplate for all archived templates, will do the trick.
0

Please sign in to leave a comment.