|
|
@ -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) { |
|
|
|