Get object fromright click

I am developing a plugin which provides a new debugging tool. As part of the tool, I have added an action to the debugging context menu, and need to access the object that has been right clicked on. Is there any way to do this? Thanks

3 comments
Comment actions Permalink

Hi, have a look at com.intellij.xdebugger.impl.ui.tree.actions.XDebuggerTreeActionBase#getSelectedNode,

or if for java specifically com.intellij.debugger.actions.ViewAsGroup#getSelectedValues

1
Comment actions Permalink

Is there anyway to directly access the object via either of these methods?
I.e Object obj = //some method which returns the selected object

0
Comment actions Permalink

I've done further research and realised this is not possible, and so will adapt my tool to run with object references. Thanks for your help

0

Please sign in to leave a comment.