As you might know, there is the source and history button in the editor toolbar right above the file and sometimes the preview button, dependend from the file. So it would be great to have only one button for your plugin too to switch from source to the hex view.
Regards
Chris