Browse Source

CHART-18788 模板保存开重写方法

feature/big-screen
shine 3 years ago
parent
commit
0dee08f919
  1. 6
      designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java

6
designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java

@ -818,7 +818,7 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>>
return false;
}
try {
this.getTarget().export(TemplateResourceManager.getResource().saveTemplate(editingFILE));
export();
} catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage(), e);
JOptionPane.showMessageDialog(DesignerContext.getDesignerFrame(), e.getMessage(), "Save Error", JOptionPane.ERROR_MESSAGE);
@ -832,6 +832,10 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>>
return true;
}
protected boolean export() throws Exception {
return this.getTarget().export(TemplateResourceManager.getResource().saveTemplate(editingFILE));
}
// /////////////////////////////toolbarMenuDock//////////////////////////////////
/**

Loading…
Cancel
Save