I'm trying to add a feature to my plugin that allows the user to edit two files in one tabbed editor. For it to open this edit the user just has to click on some node on the project view panel.
To get this working i've created a VirtualFile wrapper implementation that is associated with each project view tree node. When the user clicks on the node the VirtualFile wrapper is sent into my two FileEditorProvider implementations. Each implementation opens an editor to a different file, this way i get the tabbed editor. The files are usually one java file and one html file.
This works fine except for the fact that when i close the project with one of these editors opened and open the project again, i don't get the VirtualFile wrapper sent into my FileEditorProvider implementations, instead i get just one of the individual VirtualFiles that are really behing edited. This prevents me from opening the tabbed editor correctly on project open.
Any ideas ?
(sorry for the long post but i'm getting desperate)