Browse Source

Pull request #2329: REPORT-39861 向顶层添加tab时同时添加被选择的组件

Merge in DESIGN/design from ~YUAN.WANG/design:release/10.0 to release/10.0

* commit '39904502896f6936069c7da48bb60f4e810a20cb':
  REPORT-39861 向顶层添加tab时同时添加被选择的组件
feature/big-screen
Yuan.Wang 4 years ago
parent
commit
04dc08b88b
  1. 7
      designer-form/src/main/java/com/fr/design/mainframe/TopXCreators.java

7
designer-form/src/main/java/com/fr/design/mainframe/TopXCreators.java

@ -59,8 +59,11 @@ public class TopXCreators extends JComponent {
XCreator[] xCreators = selectionModel.getSelection().getSelectedCreators(); XCreator[] xCreators = selectionModel.getSelection().getSelectedCreators();
for (XCreator creator : xCreators) { for (XCreator creator : xCreators) {
XWCardMainBorderLayout topXMainBorderLayout = XCreatorUtils.getTopXMainBorderLayout(creator); XWCardMainBorderLayout topXMainBorderLayout = XCreatorUtils.getTopXMainBorderLayout(creator);
TopXCreator topXCreator = topXMainBorderLayout == null ? new TopXCreator(designer, creator) : new TopXCreator(designer, topXMainBorderLayout); add(new TopXCreator(designer, creator));
add(topXCreator); if (topXMainBorderLayout != null) {
add(new TopXCreator(designer, topXMainBorderLayout));
}
} }
} }

Loading…
Cancel
Save