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