mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-106145 Maven Artifact Search dialog: clicks on "plus"/"joint" tree element are processed as Add +review CR-IC
This commit is contained in:
+8
-5
@@ -123,11 +123,14 @@ public class MavenArtifactSearchPanel extends JPanel {
|
||||
|
||||
new DoubleClickListener() {
|
||||
@Override
|
||||
protected boolean onDoubleClick(MouseEvent event) {
|
||||
Object sel = myResultList.getLastSelectedPathComponent();
|
||||
if (sel != null && myResultList.getModel().isLeaf(sel)) {
|
||||
myListener.itemSelected();
|
||||
return true;
|
||||
protected boolean onDoubleClick(MouseEvent e) {
|
||||
final TreePath path = myResultList.getPathForLocation(e.getX(), e.getY());
|
||||
if (path != null && myResultList.isPathSelected(path)) {
|
||||
Object sel = path.getLastPathComponent();
|
||||
if (sel != null && myResultList.getModel().isLeaf(sel)) {
|
||||
myListener.itemSelected();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user