use of com.microsoft.azure.hdinsight.projects.template.CustomHDInsightTemplateItem in project azure-tools-for-java by Microsoft.
the class HDInsightProjectTemplatesFactory method createTemplates.
@NotNull
@Override
public ProjectTemplate[] createTemplates(@Nullable String var1, WizardContext var2) {
ArrayList<HDInsightTemplateItem> templateItems = HDInsightTemplates.getTemplates();
int templateCount = templateItems.size();
List<CustomHDInsightTemplateItem> customHDInsightTemplateItems = TemplatesUtil.getCustomTemplate();
ProjectTemplate[] projectTemplates = new ProjectTemplate[templateCount + customHDInsightTemplateItems.size()];
for (int i = 0; i < templateCount; i++) {
projectTemplates[i] = new HDInsightProjectTemplate(templateItems.get(i));
}
for (int i = templateCount; i < templateCount + customHDInsightTemplateItems.size(); ++i) {
projectTemplates[i] = new CustomProjectTemplate(customHDInsightTemplateItems.get(i - templateCount));
}
return projectTemplates;
}
Aggregations