Bug 474666 - ModelManager.reload does not clear dirty resources
Summary: ModelManager.reload does not clear dirty resources
Status: CLOSED WONTFIX
Alias: None
Product: Sphinx
Classification: Automotive
Component: Core (show other bugs)
Version: 0.9.0   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-11 03:22 EDT by Andreas Graf CLA
Modified: 2024-05-07 00:56 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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