mirror of
https://github.com/java-decompiler/jd-gui.git
synced 2025-03-01 17:05:43 +00:00
Improves #43
This commit is contained in:
parent
6c44342eef
commit
73b29841dd
@ -77,9 +77,11 @@ class TreeTabbedPanel extends JPanel implements UriGettable, UriOpenable, PageCh
|
||||
tree.addMouseListener(new MouseAdapter() {
|
||||
void mouseClicked(MouseEvent e) {
|
||||
if (SwingUtilities.isRightMouseButton(e)) {
|
||||
def path = tree.getClosestPathForLocation(e.x, e.y)
|
||||
def path = tree.getPathForLocation(e.x, e.y)
|
||||
|
||||
if (path) {
|
||||
tree.selectionPath = path
|
||||
|
||||
def node = path.lastPathComponent
|
||||
def actions = api.getContextualActions(node.entry, node.uri.fragment)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user