Is it possible to log every action?
Answered
Hello,
is it possible to log evey action which is available in the "Plugin DevKit"?
There are some actions I need for my plugin, but I dont know how they are called.
For example:
How is the action called when I double click on a file to open it in the editor?
Is the same action called when I Ctrl + click on a classname to jump to the file where it is defined?
Please sign in to leave a comment.
>is it possible to log evey action which is available in the "Plugin DevKit"?
It is possible to log all AnActions that are invoked via toolbar/shortcut/menu.
You should enter internal mode (add "-Didea.is.internal=true" to the IDE vmoptions) and use "UI Debugger..." action.
It will open dialog with "Action" tab that logs invoked actions.
>How is the action called when I double click on a file to open it in the editor?
Probably `com.intellij.ui.navigation.NavigationAction`, `com.intellij.ide.actions.EditSourceAction` or just mouse event handler (depends on context).
If you want to open file in an Editor, you can use `com.intellij.openapi.fileEditor.OpenFileDescriptor` and `com.intellij.openapi.fileEditor.FileEditorManager#openTextEditor`.
>Is the same action called when I Ctrl + click on a classname to jump to the file where it is defined?
No, these are `com.intellij.ide.actions.GotoClassAction`, `com.intellij.codeInsight.navigation.actions.GotoDeclarationAction`, etc.
I added "-Didea.is.internal=true" to the IDE vmoptions, but I dont get any action tab displayed.
You might know where it appears?
EDIT: This is not relevant anymore, I found a clean solution for my problem
Thanks for your help