Browse Source

REPORT-109843 F0051,部分保存场景没有埋点

release/11.0
Destiny.Lin 1 year ago
parent
commit
fa37738a88
  1. 7
      designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java

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

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

Loading…
Cancel
Save