mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-131794 Tree selection changes on double-click expansion
This commit is contained in:
@@ -121,8 +121,8 @@ public class WideSelectionTreeUI extends BasicTreeUI {
|
||||
}
|
||||
|
||||
private void handle(MouseEvent e) {
|
||||
final JTree tree = (JTree)e.getSource();
|
||||
if (SwingUtilities.isLeftMouseButton(e) && !e.isPopupTrigger()) {
|
||||
if (!e.isPopupTrigger() && e.getClickCount() == 1 && SwingUtilities.isLeftMouseButton(e)) {
|
||||
final JTree tree = (JTree)e.getSource();
|
||||
final TreePath pressedPath = getClosestPathForLocation(tree, e.getX(), e.getY());
|
||||
if (pressedPath != null) {
|
||||
Rectangle bounds = getPathBounds(tree, pressedPath);
|
||||
|
||||
Reference in New Issue
Block a user