From 25d247458ff816765f959d95526ac304b4290856 Mon Sep 17 00:00:00 2001 From: plough Date: Mon, 4 Jun 2018 14:26:27 +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=E9=97=AE=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 | 10 +++++++--- 1 file changed, 7 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 831bc73f8..be8f050a7 100644 --- a/designer-form/src/com/fr/design/mainframe/FormDesigner.java +++ b/designer-form/src/com/fr/design/mainframe/FormDesigner.java @@ -148,6 +148,8 @@ public class FormDesigner extends TargetComponent
implements TreeSelection new FormDesignerDropTarget(this);// 添加Drag and Drop. this.switchAction = switchAction; + + // 必须刷新"参数/控件树"面板,否则,若最近一次打开模版为 cpt,重启设计器,打开 frm,控件树消失 populateParameterPropertyPane(); } @@ -1029,9 +1031,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(); }