use of com.archimatetool.templates.model.ITemplateGroup in project archi by archimatetool.
the class CanvasTemplateManager method loadInbuiltTemplates.
@Override
protected ITemplateGroup loadInbuiltTemplates() {
ITemplateGroup group = new TemplateGroup(Messages.CanvasTemplateManager_0);
File folder = CanvasEditorPlugin.INSTANCE.getTemplatesFolder();
if (folder.exists()) {
for (File file : folder.listFiles()) {
if (file.getName().toLowerCase().endsWith(CANVAS_TEMPLATE_FILE_EXTENSION)) {
ITemplate template = new CanvasModelTemplate();
template.setFile(file);
group.addTemplate(template);
}
}
}
return group;
}
Aggregations