Browse Source

命名修改

research/11.0
kerry 3 years ago
parent
commit
6a28016370
  1. 4
      designer-form/src/main/java/com/fr/design/designer/beans/models/SelectionModel.java

4
designer-form/src/main/java/com/fr/design/designer/beans/models/SelectionModel.java

@ -140,7 +140,7 @@ public class SelectionModel {
if (cutSelection != null) { if (cutSelection != null) {
cutSelection.cut2ClipBoard(clipboard); cutSelection.cut2ClipBoard(clipboard);
designer.getEditListenerTable().fireCreatorModified(DesignerEvent.CREATOR_CUTED); designer.getEditListenerTable().fireCreatorModified(DesignerEvent.CREATOR_CUTED);
setSelectedCreator(ifSelectParaComponent() ? designer.getParaComponent() : designer.getRootComponent()); setSelectedCreator(hasSelectedParaComponent() ? designer.getParaComponent() : designer.getRootComponent());
designer.repaint(); designer.repaint();
} }
} }
@ -150,7 +150,7 @@ public class SelectionModel {
* 判断是否选中参数面板中的组件 * 判断是否选中参数面板中的组件
* @return boolean * @return boolean
*/ */
private boolean ifSelectParaComponent() { private boolean hasSelectedParaComponent() {
XCreator[] roots = selection.getSelectedCreators(); XCreator[] roots = selection.getSelectedCreators();
if (roots.length > 0) { if (roots.length > 0) {
for (XCreator creator : roots) { for (XCreator creator : roots) {

Loading…
Cancel
Save