|
|
|
@ -974,6 +974,8 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
|
|
|
|
|
* @param jt 添加的模板. |
|
|
|
|
*/ |
|
|
|
|
public void addAndActivateJTemplate(JTemplate<?, ?> jt) { |
|
|
|
|
//切换文件后清空FixedPopupPane面板
|
|
|
|
|
EastRegionContainerPane.getInstance().clearCurrentPopupPane(); |
|
|
|
|
//释放模板对象
|
|
|
|
|
ActionFactory.editorRelease(); |
|
|
|
|
if (jt == null || jt.getEditingFILE() == null) { |
|
|
|
@ -993,6 +995,8 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
|
|
|
|
|
* @param jt 模板 |
|
|
|
|
*/ |
|
|
|
|
public void activateJTemplate(JTemplate<?, ?> jt) { |
|
|
|
|
//切换文件后清空FixedPopupPane面板
|
|
|
|
|
EastRegionContainerPane.getInstance().clearCurrentPopupPane(); |
|
|
|
|
//释放模板对象
|
|
|
|
|
ActionFactory.editorRelease(); |
|
|
|
|
if (jt == null || jt.getEditingFILE() == null) { |
|
|
|
@ -1103,7 +1107,8 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
|
|
|
|
|
* @date 2014-10-14-下午6:31:05 |
|
|
|
|
*/ |
|
|
|
|
private void openFile(FILE tplFile) { |
|
|
|
|
|
|
|
|
|
//切换文件后清空FixedPopupPane面板
|
|
|
|
|
EastRegionContainerPane.getInstance().clearCurrentPopupPane(); |
|
|
|
|
if (tplFile != null) { |
|
|
|
|
int index = HistoryTemplateListCache.getInstance().contains(tplFile); |
|
|
|
|
if (index != -1) { |
|
|
|
|