Fix Opening Selected Resource
This commit is contained in:
parent
265323f33c
commit
f7e47540dc
1 changed files with 4 additions and 4 deletions
|
@ -403,21 +403,21 @@ public class ResourceListPane extends TranslatedVisibleComponent implements File
|
||||||
tree.expandPath(path);
|
tree.expandPath(path);
|
||||||
});
|
});
|
||||||
|
|
||||||
/*this.tree.addMouseListener(new MouseAdapter() {
|
this.tree.addMouseListener(new MouseAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void mousePressed(MouseEvent e) {
|
public void mousePressed(MouseEvent e) {
|
||||||
openPath(tree.getPathForLocation(e.getX(), e.getY()));
|
openPath(tree.getPathForLocation(e.getX(), e.getY()));
|
||||||
}
|
}
|
||||||
});*/
|
});
|
||||||
|
|
||||||
this.tree.addTreeSelectionListener(arg0 -> {
|
/*this.tree.addTreeSelectionListener(arg0 -> {
|
||||||
if (cancel) {
|
if (cancel) {
|
||||||
cancel = false;
|
cancel = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
openPath(arg0.getPath());
|
openPath(arg0.getPath());
|
||||||
});
|
});*/
|
||||||
|
|
||||||
this.tree.addKeyListener(new KeyListener()
|
this.tree.addKeyListener(new KeyListener()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue