|
|
@ -201,7 +201,7 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>> |
|
|
|
} else if (!DesignModeContext.isVcsMode() && !DesignModeContext.isAuthorityEditing() && !DesignModeContext.isDuchampMode()) { |
|
|
|
} else if (!DesignModeContext.isVcsMode() && !DesignModeContext.isAuthorityEditing() && !DesignModeContext.isDuchampMode()) { |
|
|
|
DesignModeContext.switchTo(com.fr.design.base.mode.DesignerMode.NORMAL); |
|
|
|
DesignModeContext.switchTo(com.fr.design.base.mode.DesignerMode.NORMAL); |
|
|
|
} |
|
|
|
} |
|
|
|
this.template = t; |
|
|
|
this.template = getTarget(); |
|
|
|
this.previewType = parserPreviewProvider(t.getPreviewType()); |
|
|
|
this.previewType = parserPreviewProvider(t.getPreviewType()); |
|
|
|
this.editingFILE = file; |
|
|
|
this.editingFILE = file; |
|
|
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
@ -213,10 +213,6 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>> |
|
|
|
} |
|
|
|
} |
|
|
|
addCenterPane(); |
|
|
|
addCenterPane(); |
|
|
|
isNewCreateTpl = isNewFile; |
|
|
|
isNewCreateTpl = isNewFile; |
|
|
|
if (isNewCreateTpl) { |
|
|
|
|
|
|
|
// REPORT-58486: 必须在初始的UndoState创建前设置主题,使得初始的UndoState就包含了主题效果
|
|
|
|
|
|
|
|
setUpTheme4NewTemplate(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.undoState = createUndoState(); |
|
|
|
this.undoState = createUndoState(); |
|
|
|
|
|
|
|
|
|
|
|
initAndStartPlugin(); |
|
|
|
initAndStartPlugin(); |
|
|
|