|
|
@ -38,10 +38,17 @@ public class TemplateFileTree extends EnvFileTree { |
|
|
|
private static final int MAX_NODE_EXPAND_NUM = 50; |
|
|
|
private static final int MAX_NODE_EXPAND_NUM = 50; |
|
|
|
private static final int MAX_MATCHED_NODE_NUM = 500; |
|
|
|
private static final int MAX_MATCHED_NODE_NUM = 500; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private boolean exportTemplate = false; |
|
|
|
|
|
|
|
|
|
|
|
public TemplateFileTree() { |
|
|
|
public TemplateFileTree() { |
|
|
|
super(ProjectConstants.REPORTLETS_NAME, null, null); |
|
|
|
super(ProjectConstants.REPORTLETS_NAME, null, null); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public TemplateFileTree(boolean exportTemplate) { |
|
|
|
|
|
|
|
this(); |
|
|
|
|
|
|
|
this.exportTemplate = exportTemplate; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
/* |
|
|
|
* 选中reportPath |
|
|
|
* 选中reportPath |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -152,13 +159,17 @@ public class TemplateFileTree extends EnvFileTree { |
|
|
|
Set<FileExtension> supportTypes = new HashSet<FileExtension>(); |
|
|
|
Set<FileExtension> supportTypes = new HashSet<FileExtension>(); |
|
|
|
if (filter != null) { |
|
|
|
if (filter != null) { |
|
|
|
for (String temp : filter.getSupportedTypes()) { |
|
|
|
for (String temp : filter.getSupportedTypes()) { |
|
|
|
|
|
|
|
if (!(exportTemplate && temp.endsWith("fvs"))) { |
|
|
|
supportTypes.add(FileExtension.parse(temp)); |
|
|
|
supportTypes.add(FileExtension.parse(temp)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
Set<App> apps = ExtraDesignClassManager.getInstance().getArray(App.MARK_STRING); |
|
|
|
Set<App> apps = ExtraDesignClassManager.getInstance().getArray(App.MARK_STRING); |
|
|
|
for (App temp : apps) { |
|
|
|
for (App temp : apps) { |
|
|
|
for (String extendsion : temp.defaultExtensions()) { |
|
|
|
for (String extension : temp.defaultExtensions()) { |
|
|
|
supportTypes.add(FileExtension.parse(extendsion)); |
|
|
|
if (!(exportTemplate && extension.endsWith("fvs"))) { |
|
|
|
|
|
|
|
supportTypes.add(FileExtension.parse(extension)); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return supportTypes; |
|
|
|
return supportTypes; |
|
|
|