Browse Source

Merge pull request #1574 in BA/design from ~PLOUGH/design:feature/9.0 to feature/9.0

* commit '7b6776deba071bcaf9cdb528fb6d7cb078435cf9':
  无JIRA任务,修复打开表单,控件树消失的问题
superman 7 years ago
parent
commit
b320332969
  1. 5
      designer_form/src/com/fr/design/mainframe/FormDesigner.java

5
designer_form/src/com/fr/design/mainframe/FormDesigner.java

@ -147,6 +147,9 @@ public class FormDesigner extends TargetComponent<Form> implements TreeSelection
new FormDesignerDropTarget(this);// 添加Drag and Drop. new FormDesignerDropTarget(this);// 添加Drag and Drop.
this.switchAction = switchAction; this.switchAction = switchAction;
// 必须刷新"参数/控件树"面板,否则,若最近一次打开模版为 cpt,重启设计器,打开 frm,控件树消失
populateParameterPropertyPane();
} }
/** /**
@ -1027,9 +1030,11 @@ public class FormDesigner extends TargetComponent<Form> implements TreeSelection
if (!BaseUtils.isAuthorityEditing()) { if (!BaseUtils.isAuthorityEditing()) {
selectionModel.setSelectedCreators(selected); selectionModel.setSelectedCreators(selected);
if (formArea != null) {
TreePath path = e.getNewLeadSelectionPath(); TreePath path = e.getNewLeadSelectionPath();
XCreator comp = (XCreator) path.getLastPathComponent(); XCreator comp = (XCreator) path.getLastPathComponent();
formArea.scrollPathToVisible(comp); formArea.scrollPathToVisible(comp);
}
} else { } else {
showAuthorityEditPane(); showAuthorityEditPane();
} }

Loading…
Cancel
Save