Registering a new file type

My plugin is trying to open a file in Idea but nothing happens. The caveat is that the file type is not yet known by Idea. If I first open the file by hand and tell Idea what the file type is then from that point forward I can open files of that type from my plugin. Is there any way I can programatically register the file type?

Please sign in to leave a comment.