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