Browse Source

无JIRA任务,修复打开表单,控件树消失问题

master
plough 7 years ago
parent
commit
25d247458f
  1. 10
      designer-form/src/com/fr/design/mainframe/FormDesigner.java

10
designer-form/src/com/fr/design/mainframe/FormDesigner.java

@ -148,6 +148,8 @@ public class FormDesigner extends TargetComponent<Form> implements TreeSelection
new FormDesignerDropTarget(this);// 添加Drag and Drop.
this.switchAction = switchAction;
// 必须刷新"参数/控件树"面板,否则,若最近一次打开模版为 cpt,重启设计器,打开 frm,控件树消失
populateParameterPropertyPane();
}
@ -1029,9 +1031,11 @@ public class FormDesigner extends TargetComponent<Form> 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();
}

Loading…
Cancel
Save