Open Custom File with Processing?

Can i make a file called “file.banana” and programm processing to show it when choosing this dialog?
and is it available on linux and windows?
I want a way to klick the file, select open with BananaFileViewer or something like that!

see Is it possible to open a file with processing sketch? (command line)