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