From 50444d765ae03f70ba60c03ea06665be4604001b Mon Sep 17 00:00:00 2001 From: plough Date: Thu, 4 Jan 2018 16:14:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=93=E5=BC=80=E8=A1=A8=E5=8D=95=EF=BC=8C?= =?UTF-8?q?=E6=8E=A7=E4=BB=B6=E6=A0=91=E6=B6=88=E5=A4=B1=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/com/fr/design/mainframe/FormDesigner.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/designer_form/src/com/fr/design/mainframe/FormDesigner.java b/designer_form/src/com/fr/design/mainframe/FormDesigner.java index 4b2c664b40..764f746822 100644 --- a/designer_form/src/com/fr/design/mainframe/FormDesigner.java +++ b/designer_form/src/com/fr/design/mainframe/FormDesigner.java @@ -147,6 +147,9 @@ public class FormDesigner extends TargetComponent
implements TreeSelection new FormDesignerDropTarget(this);// 添加Drag and Drop. this.switchAction = switchAction; + + // 必须刷新"参数/控件树"面板,否则,若最近一次打开模版为 cpt,重启设计器,打开 frm,控件树消失 + populateParameterPropertyPane(); } /** @@ -1027,9 +1030,11 @@ public class FormDesigner extends TargetComponent implements TreeSelection if (!BaseUtils.isAuthorityEditing()) { selectionModel.setSelectedCreators(selected); - TreePath path = e.getNewLeadSelectionPath(); - XCreator comp = (XCreator) path.getLastPathComponent(); - formArea.scrollPathToVisible(comp); + if (formArea != null) { + TreePath path = e.getNewLeadSelectionPath(); + XCreator comp = (XCreator) path.getLastPathComponent(); + formArea.scrollPathToVisible(comp); + } } else { showAuthorityEditPane(); }