Bug 474666

Summary: ModelManager.reload does not clear dirty resources
Product: [Automotive] Sphinx Reporter: Andreas Graf <graf>
Component: CoreAssignee: Project Inbox <sphinx-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: balazs.grill
Version: 0.9.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows NT   
Whiteboard:

Description Andreas Graf CLA 2015-08-11 03:22:34 EDT
We have the following setting detected in our test cases:

1. We load the workspace / project with the ModelManager
2. We modify the model in a transaction
3. Dirty Resources seem correct
4. We reload the workspace with ModelManager.reload(Project) do discard the changes
5. It seems that the old dirty resources are still cached somewher because at this point:

getEditingDomain().getResourceSet().getResources() shows the correct resources
but
SaveIndicatorUtil.getDirtyResources(getEditingDomain()) shows both the resources after the reload and before the reload
Comment 1 Balazs Grill CLA 2024-05-07 00:56:47 EDT
Closed stale issue before migration