Skip to content

Save unloads profile application resource with GMF editors #34

@GoogleCodeExporter

Description

@GoogleCodeExporter
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.langer on 27 Mar 2013 at 4:46

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions