Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanue1 committed Jun 26, 2015
1 parent 6c44342 commit 73b2984
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 73b2984

Please sign in to comment.