[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Diagram update problem related to use of URIEditorInput

I have a GMF Editor as RCP application which also has the "Project Explorer" and "Navigator" views visible and contains a workspace environment like in Eclipse.

Now the problem is: When I create a new diagram via the gmf auto-generated new-diagram-wizards, the new diagram's file appears correctly in the Project Explorer and a new worbench window tab editor for the diagram opens up correctly. This "parent" diagram is a partitioned diagram, which means, on double-click on one of the diagram nodes a sub-diagram opens which shows the "contents" of the diagram node which was double-clicked. I then do some modifications in the sub-diagram and save it. On this save, the new contents of the subdiagram are written back into the diagram file. These modifications should cause the node which was double-clicked in the "parent" diagram to change it's appearance (more explicitly it should now be displayed as 'filled' but that's off the point here). But when I close the sub-diagram editor and go back to the "parent" editor, the "parent" editor's appearance is not updated. I have to close the "parent" editor window and open it again via the Project Explorer view to get the updated appearance displayed.

The strange thing is now that the behaviour described before only happens for a diagram which has just been freshly created via the new-diagram wizard. If I open the diagram file via double-clicking the file in the Project Explorer view and do the same steps to modify the sub-diagram, the "parent" diagram gets updated automatically (even without displaying that ususally appearing annoying message "The file contents changed on the file system. Do you want to reload?")