diff --git a/designer-base/src/main/java/com/fr/design/file/HistoryTemplateListPane.java b/designer-base/src/main/java/com/fr/design/file/HistoryTemplateListPane.java index 073c4fd1d5..73d305333d 100644 --- a/designer-base/src/main/java/com/fr/design/file/HistoryTemplateListPane.java +++ b/designer-base/src/main/java/com/fr/design/file/HistoryTemplateListPane.java @@ -1,16 +1,153 @@ package com.fr.design.file; +import com.fr.base.chart.chartdata.CallbackEvent; +import com.fr.design.mainframe.JTemplate; +import com.fr.file.FILE; +import com.fr.file.FileNodeFILE; + +import java.util.List; + /** * 历史模板缓存 - * + *
* 为可能存在的插件做兼容处理
*
* @see HistoryTemplateListCache
* @deprecated use HistoryTemplateListCache instead
*/
@Deprecated
-public class HistoryTemplateListPane {
- public static HistoryTemplateListCache getInstance() {
+public class HistoryTemplateListPane implements CallbackEvent {
+
+
+ private static volatile HistoryTemplateListPane THIS;
+
+ public static HistoryTemplateListPane getInstance() {
+ if (THIS == null) {
+ synchronized (HistoryTemplateListPane.class) {
+ if (THIS == null) {
+ THIS = new HistoryTemplateListPane();
+ }
+ }
+ }
+ return THIS;
+ }
+
+ private static HistoryTemplateListCache instead() {
return HistoryTemplateListCache.getInstance();
}
+
+
+ /**
+ * 关闭选择的文件
+ *
+ * @param selected 选择的
+ */
+ public void closeSelectedReport(JTemplate, ?> selected) {
+ instead().closeSelectedReport(selected);
+ }
+
+ /**
+ * 临时关闭选择的文件
+ *
+ * @param selected 选择的
+ */
+ public void closeVirtualSelectedReport(JTemplate, ?> selected) {
+ instead().closeVirtualSelectedReport(selected);
+ }
+
+
+ public JTemplate, ?> getCurrentEditingTemplate() {
+ return instead().getCurrentEditingTemplate();
+ }
+
+ public void setCurrentEditingTemplate(JTemplate, ?> jt) {
+ instead().setCurrentEditingTemplate(jt);
+
+ }
+
+ /**
+ * 添加历史记录
+ */
+ public void addHistory() {
+ instead().addHistory();
+ }
+
+
+ public List