Can't add item into IDEA 14.x watches/variables menu
Trying to add menu item to debug windows in IntelliJ IDEA Community Edition 14.0.3
<action id="CopyAsJson.Copy" class="com.riabchenko.idea.JSONCopyAction" text="Copy as JSON"
description="Copies JSON representation of instance in Variables or Watches debug views">
<add-to-group group-id="Debugger.FramePanelPopup" relative-to-action="Debugger.CopyValue" anchor="after" />
<add-to-group group-id="Debugger.EvaluationDialogPopup" relative-to-action="Debugger.CopyValue" anchor="after" />
<add-to-group group-id="Debugger.InspectPanelPopup" relative-to-action="Debugger.CopyValue" anchor="after" />
<add-to-group group-id="Debugger.WatchesPanelPopup" relative-to-action="Debugger.CopyValue" anchor="after" />
</action>
As a result - no additional item in menu. But in previous version of IDEA 13 - new item appears in menu.
How to solve this issue with 14.x?
Please sign in to leave a comment.
Hello Denis,
did you find a solution? I am facing the same problem; items don't show in IDEA 14, but it worked with older versions.
BR
Christoph
Hi Christoph,
No, I haven't found solution for this issue.
I've checked plugin with 14.0.3 UC version and menu item is still not visible
Ok, I digged a litter bit deeper into it, this is what i have found out:
I hope that somebody from JetBrains will comment on this, soon...
Ok, I have reported this issue and I got an anwser: https://youtrack.jetbrains.com/issue/IDEA-145835
Instead of using BaseValueAction you should get selected values with ViewAsGroup.getSelectedValues(event).
My plugin works again. I hope this helps you, too.
That's quite strange because my action is exctended from DebuggerAction which extends AnAction
Have you tried using the new XDebugger groups? To add a context menu item to all variables in debugger- and watch-view I had to use these: