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

0

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
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

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

请先登录再写评论。