|
|
@ -529,12 +529,13 @@ public abstract class JTemplate<T extends IOFile, U extends BaseUndoState<?>> ex |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected boolean saveNewFile(FILE editingFILE, String oldName){ |
|
|
|
protected boolean saveNewFile(FILE editingFILE, String oldName){ |
|
|
|
this.editingFILE = editingFILE; |
|
|
|
// 在保存之前,初始化 templateID
|
|
|
|
|
|
|
|
initForCollect(); // 如果保存新模板(新建模板直接保存,或者另存为),则添加 templateID
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.editingFILE = editingFILE; |
|
|
|
boolean result = this.saveFile(); |
|
|
|
boolean result = this.saveFile(); |
|
|
|
if (result) { |
|
|
|
if (result) { |
|
|
|
DesignerFrameFileDealerPane.getInstance().refresh(); |
|
|
|
DesignerFrameFileDealerPane.getInstance().refresh(); |
|
|
|
initForCollect(); // 如果保存新模板(新建模板直接保存,或者另存为),则添加 templateID
|
|
|
|
|
|
|
|
collectInfo(); |
|
|
|
collectInfo(); |
|
|
|
} |
|
|
|
} |
|
|
|
//更换最近打开
|
|
|
|
//更换最近打开
|
|
|
@ -1028,4 +1029,4 @@ public abstract class JTemplate<T extends IOFile, U extends BaseUndoState<?>> ex |
|
|
|
|
|
|
|
|
|
|
|
return uiButtons; |
|
|
|
return uiButtons; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|