Is there any way to catch double-click action in project view?
I want to do some processes when double clicking a file with specific extension.. (ex. *.abc)
I tried...
-
I make a class that implements FileEditorProvider, and in accept() method, I do something and return false, but default text editor is shown (This is NOT exactly what i want to do...)
- So, I returned FileEditorPolicy.PLACE_AFTER_DEFAULT_EDITOR in getPolicy() method, and I do something in createEditor() method, and return null...But it cause an exception '.....it should return non-null.....'
I want to do :
- When double click a specific file(*.abc) in project view (tree), I want to launch external binary
- Default text editor should be not shown.
Is there any solution for this?
I found same questions here :
- https://intellij-support.jetbrains.com/hc/en-us/community/posts/206137969-How-I-can-handle-double-click-the-file-in-project-tree-?page=1#community_comment_207524379
- https://intellij-support.jetbrains.com/hc/en-us/community/posts/206800295-How-to-hook-an-external-editor-to-a-custom-file-type-?page=1#community_comment_207078065
But it does not have any solutions..
Please sign in to leave a comment.
In my post, mistype something...
I don't think it's possible now. Please create a request in YouTrack for that.