Browse Source

REPORT-57128&REPORT-57657 优化代码冗余逻辑

feature/10.0
方磊 3 years ago
parent
commit
5028683f56
  1. 9
      designer-form/src/main/java/com/fr/design/mainframe/FormSpacingLineDrawer.java

9
designer-form/src/main/java/com/fr/design/mainframe/FormSpacingLineDrawer.java

@ -137,18 +137,15 @@ public class FormSpacingLineDrawer {
}
private boolean isSelectedParaComponent() {
return designer.getSelectionModel().getSelection().size() == 1 &&
designer.getParaComponent() == designer.getSelectionModel().getSelection().getSelectedCreator();
return designer.getParaComponent() == designer.getSelectionModel().getSelection().getSelectedCreator();
}
private boolean isSelectedRootComponent() {
return designer.getSelectionModel().getSelection().size() == 1 &&
designer.isRoot(designer.getSelectionModel().getSelection().getSelectedCreator());
return designer.isRoot(designer.getSelectionModel().getSelection().getSelectedCreator());
}
private boolean isSelectedForm() {
return designer.getSelectionModel().getSelection().size() == 1 &&
designer.getSelectionModel().getSelection().getSelectedCreator().getParent() == null;
return designer.getSelectionModel().getSelection().getSelectedCreator().getParent() == null;
}
private boolean isNeedExtendedLine(AbstractFormParallelLine[] nearestSides) {

Loading…
Cancel
Save