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
Please sign in to leave a comment.
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
Is there anyway to directly access the object via either of these methods?
I.e Object obj = //some method which returns the selected object
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