How to hook an external editor to a custom file-type?
Hi,
I managed to provide a custom FileType (extending UserBinaryFileType) and to register the type with the FileTypeManager with an icon and several filename extensions. So far, so good.
Now I don't want to provide an editor inside idea but instead I need to get a notification if the user tries to edit a file of my type, let say with double-clicking on its entry in the project view.
How can I accomplish this without defining a Language or such?
Please sign in to leave a comment.
Just found the Interface FileEditorProvider which forces me to return a non-null FileEditor, unfortunately.
Perhaps it is not possible to manage custom (binary files) with an external editor?
What I try to do is to make it as comfortable as possible to open native files with native applications from inside idea.
Just double-click the native file inside the project tree and the native application shows up with it.
You should file a request at JIRA to allow the editor to return null. You might
also want to file a request asking for ability to hook into opening unknown file
type, so you don't need to manually register each one.
Frank Bruch wrote:
Thanks. Done. http://www.jetbrains.net/jira/browse/IDEA-4340
I want to find a solution for this..
But the link is broken.... can i get a solution for this??