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