What steps will reproduce the problem?
1. Open a GMF-based editor
2. Apply a profile
3. Apply a stereotype
4. Click save in the profile applications view
What is the expected output? What do you see instead?
The profile application should be saved and everything should keep working
normal. However, the profile application view gets unloaded after saving it.
The reason is that GMF-based editors have a workspace synchronizer (cf.
http://download.eclipse.org/modeling/emf/transaction/javadoc/workspace/1.5.0/org
/eclipse/emf/workspace/util/WorkspaceSynchronizer.html) which observes all
files loaded in its resource set. As the profile application is loaded in the
editor's resource set, an external save will trigger the synchronizer to handle
the file update, which is, by default, unloading it.
Temporarily, we may work around this issue by clicking the save button of the
GMF-based diagram editor instead of the button in the profile application view.
Saving the diagram will also save the profile application resource, as it will
save all resources in its resource set.
Original issue reported on code.google.com by
p.langeron 27 Mar 2013 at 4:46