|
|
|
@ -879,7 +879,10 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>>
|
|
|
|
|
return saveAsTemplate(isShowLoc); |
|
|
|
|
} |
|
|
|
|
collectInfo(); |
|
|
|
|
return this.saveFile(); |
|
|
|
|
TemplateSaveInfoContext.getInstance().startCollect(template); |
|
|
|
|
boolean result = this.saveFile(); |
|
|
|
|
TemplateSaveInfoContext.getInstance().stopCollect(result); |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private boolean isCancelOperation(int operation) { |
|
|
|
@ -968,7 +971,9 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>>
|
|
|
|
|
generateNewTemplateIdForSaveAs(); |
|
|
|
|
|
|
|
|
|
this.editingFILE = editingFILE; |
|
|
|
|
TemplateSaveInfoContext.getInstance().startCollect(template); |
|
|
|
|
boolean result = this.saveToNewFile(oldName); |
|
|
|
|
TemplateSaveInfoContext.getInstance().stopCollect(result); |
|
|
|
|
if (result) { |
|
|
|
|
DesignerFrameFileDealerPane.getInstance().refresh(); |
|
|
|
|
collectInfoWhenSaveAs(originID); |
|
|
|
|