I'm developing a embedded browser for Intelij using JxBrowser. I've made quite a bit of progress, I'm looking into restoring browser editors now.
This is what I am trying.
* I open the browsers using a dummy VirtualFile containing the Url.
* The Browser Editor extends from FileEditor and has the getState and setState methods defined. getState returns the current url.
* The FileEditorProvider has read and write state methods.
I have verified that the state persistence methods are being called, but upon reopening the IDE they aren't touched. I've tried to walk through the code to find out the semantics but I can't find the right code paths.
The code is available here (branch WIP). https://github.com/hsyed/blast.browser/tree/wip. It's prototype quality :D. You need a JxBrowser license to run it (can get it from their website), I will apply for an open source license license soon.
What am I missing ? I am hoping it is something simple.