From db181c4505c6fd7fe96a3150ebc549e03f59136f Mon Sep 17 00:00:00 2001 From: Harrison Date: Fri, 27 Dec 2019 11:49:43 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-25730=20=E6=9C=80=E6=96=B0=E7=9A=84relea?= =?UTF-8?q?se=E8=AE=BE=E8=AE=A1=E5=99=A8=E5=90=AF=E5=8A=A8=E5=90=8E?= =?UTF-8?q?=E4=B8=80=E7=9B=B4=E6=8A=A5=E6=A8=A1=E6=9D=BF=E4=B8=8D=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=20=E8=BF=98=E9=9C=80=E8=A6=81=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E5=AD=98=E5=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/fr/design/data/datapane/TableDataTreePane.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreePane.java b/designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreePane.java index 5a289e6fd7..dd99ca0ba3 100644 --- a/designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreePane.java +++ b/designer-base/src/main/java/com/fr/design/data/datapane/TableDataTreePane.java @@ -171,11 +171,16 @@ public class TableDataTreePane extends BasicTableDataTreePane { private void reloadCurrTemplate() { JTemplate jt = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate(); - if (jt != null && jt.getEditingFILE() != null) { + if (accept(jt)) { HistoryTemplateListCache.getInstance().closeSelectedReport(jt); DesignerContext.getDesignerFrame().openTemplate(jt.getEditingFILE()); } } + + private boolean accept(JTemplate jt) { + + return jt != null && jt.getEditingFILE() != null && !jt.getEditingFILE().exists(); + } }, new PluginFilter() { @Override public boolean accept(PluginContext pluginContext) {