|
|
@ -411,6 +411,11 @@ public class ComponentTree extends JTree { |
|
|
|
if (e.isControlDown() || e.isShiftDown()) { |
|
|
|
if (e.isControlDown() || e.isShiftDown()) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
XCreator currentCreator = designer.getSelectionModel().getSelection().getSelectedCreator(); |
|
|
|
|
|
|
|
// 以当前选中的为准
|
|
|
|
|
|
|
|
if (currentCreator != selectedCreator) { |
|
|
|
|
|
|
|
selectedCreator = currentCreator; |
|
|
|
|
|
|
|
} |
|
|
|
if (e.getButton() == MouseEvent.BUTTON1 && selectedCreator != null) { |
|
|
|
if (e.getButton() == MouseEvent.BUTTON1 && selectedCreator != null) { |
|
|
|
showSelectedPopup(selectedCreator); |
|
|
|
showSelectedPopup(selectedCreator); |
|
|
|
} |
|
|
|
} |
|
|
|