|
|
|
@ -802,6 +802,7 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
|
|
|
|
|
* @param jt 添加的模板. |
|
|
|
|
*/ |
|
|
|
|
public void addAndActivateJTemplate(JTemplate<?, ?> jt) { |
|
|
|
|
DesignModeContext.switchTo(DesignerMode.NORMAL); |
|
|
|
|
JTemplate currentEditingTemplate = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate(); |
|
|
|
|
if (currentEditingTemplate != null) { |
|
|
|
|
currentEditingTemplate.stopEditing(); |
|
|
|
@ -988,7 +989,6 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
|
|
|
|
|
* @date 2014-10-14-下午6:31:05 |
|
|
|
|
*/ |
|
|
|
|
private void openFile(FILE tplFile) { |
|
|
|
|
DesignModeContext.switchTo(DesignerMode.NORMAL); |
|
|
|
|
//切换文件后清空FixedPopupPane面板
|
|
|
|
|
EastRegionContainerPane.getInstance().clearCurrentPopupPane(); |
|
|
|
|
if (tplFile != null) { |
|
|
|
|