|
|
|
@ -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) { |
|
|
|
|