Browse Source

Merge pull request #2334 in DESIGN/design from release/10.0 to bugfix/10.0

* commit '04dc08b88b8581b856de969061fabd26469c595b':
  REPORT-39861 向顶层添加tab时同时添加被选择的组件
bugfix/10.0
superman 4 years ago
parent
commit
24b0bcf430
  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();
for (XCreator creator : xCreators) {
XWCardMainBorderLayout topXMainBorderLayout = XCreatorUtils.getTopXMainBorderLayout(creator);
TopXCreator topXCreator = topXMainBorderLayout == null ? new TopXCreator(designer, creator) : new TopXCreator(designer, topXMainBorderLayout);
add(topXCreator);
add(new TopXCreator(designer, creator));
if (topXMainBorderLayout != null) {
add(new TopXCreator(designer, topXMainBorderLayout));
}
}
}

Loading…
Cancel
Save