Browse Source

Merge pull request #2335 in DESIGN/design from bugfix/10.0 to feature/10.0

* commit '24b0bcf430087ee979acbbb485d87b75d86fbcb1':
  REPORT-39861 向顶层添加tab时同时添加被选择的组件
research/11.0
superman 4 years ago
parent
commit
b0ba4fa9c7
  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