Browse Source

REPORT-39861 向顶层添加tab时同时添加被选择的组件

feature/big-screen
Yuan.Wang 4 years ago
parent
commit
3990450289
  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