I'm trying to build a multi-page editor that consists of the diagram editor page created with GMF and a Eclipse Forms editor page with custom widgets. To do this i have followed the instructions in the "
Create an Eclipse Forms editor with widgets for your properties" recipe, and the "
Integrating GMF and EMF editors" tutorial. I have first built the GMF and EMF editor, integrated them according to the tutorial, then stripped all the pages created by the EMF editor, and added my custom page.
Everything works well until I hit the save button. After that my ItemProvider in the Forms editor losses the connection to the model, or as I see it, the diagram editor starts pointing to a different model instance. I do not recieve any notification from the ItemProvider in the form editor, nor do the changes I make in that editor affect the model that is viewed in the diagram editor (and these changes cannot be saved). Also, my PropertySheet seems to change a wrong instance of the model until I select a node in the diagram after save.
Does anybody know how I can keep tracking the right resources in my custom editor?