|
|
|
@ -36,6 +36,7 @@ import com.fr.design.utils.gui.LayoutUtils;
|
|
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
|
import com.fr.stable.Constants; |
|
|
|
|
|
|
|
|
|
import com.fr.third.org.apache.commons.lang3.ArrayUtils; |
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
|
import javax.swing.JComponent; |
|
|
|
|
import javax.swing.JPopupMenu; |
|
|
|
@ -645,16 +646,15 @@ public class EditingMouseListener extends MouseInputAdapter {
|
|
|
|
|
selectionModel.selectACreatorAtMouseEvent(e); |
|
|
|
|
refreshTopXCreator(); |
|
|
|
|
XCreator[] xCreators = selectionModel.getSelection().getSelectedCreators(); |
|
|
|
|
// 放到事件队尾执行
|
|
|
|
|
SwingUtilities.invokeLater(new Runnable() { |
|
|
|
|
@Override |
|
|
|
|
public void run() { |
|
|
|
|
for (XCreator xCreator : xCreators) { |
|
|
|
|
xCreator.setSelected(!e.isShiftDown() && !e.isControlDown()); |
|
|
|
|
if (ArrayUtils.getLength(xCreators) == 1) { |
|
|
|
|
// 放到事件队尾执行
|
|
|
|
|
SwingUtilities.invokeLater(new Runnable() { |
|
|
|
|
@Override |
|
|
|
|
public void run() { |
|
|
|
|
xCreators[0].setSelected(!e.isShiftDown() && !e.isControlDown()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} else if (clickedNonCardButton && uneditedTab && responseTabLayout(oldCreator, e)) { |
|
|
|
|
// do nothing
|
|
|
|
|
} else { |
|
|
|
|