|
|
@ -977,6 +977,10 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta |
|
|
|
* @param jt 添加的模板. |
|
|
|
* @param jt 添加的模板. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void addAndActivateJTemplate(JTemplate<?, ?> jt) { |
|
|
|
public void addAndActivateJTemplate(JTemplate<?, ?> jt) { |
|
|
|
|
|
|
|
JTemplate currentEditingTemplate = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate(); |
|
|
|
|
|
|
|
if (currentEditingTemplate != null) { |
|
|
|
|
|
|
|
currentEditingTemplate.stopEditing(); |
|
|
|
|
|
|
|
} |
|
|
|
//切换文件后清空FixedPopupPane面板
|
|
|
|
//切换文件后清空FixedPopupPane面板
|
|
|
|
EastRegionContainerPane.getInstance().clearCurrentPopupPane(); |
|
|
|
EastRegionContainerPane.getInstance().clearCurrentPopupPane(); |
|
|
|
//释放模板对象
|
|
|
|
//释放模板对象
|
|
|
|