Bug 581800 - Reload from external change when there are local changes
Summary: Reload from external change when there are local changes
Status: NEW
Alias: None
Product: Sphinx
Classification: Automotive
Component: Navigator & Editor Sockets (show other bugs)
Version: 0.13.0   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: 0.13.1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-11 02:27 EDT by Balazs Grill CLA
Modified: 2024-05-07 01:00 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Balazs Grill CLA 2023-04-11 02:27:05 EDT
Feature request from Pierre Dufay:

Actually there is no mechanism that would allow developer to prevent resource reloading when a change has been done from 'outside'.
Use case is simple: user updated loaded model from resource, making it dirty. In parallel, file which contains serialized model is updated from external editor.
When this occurs, sphinx reloads file, without checking if there are changes in loaded model or not.
This behavior is hosted in a non UI plugin (org.eclipse.sphinx.emf.workspace). therefore it is not possible to ask user whether he wants to keep modifications done in loaded model or get outside updates.
It would be great to sphinx provides an anchor which would allow to ask end-user what he wants to do.
See in attachment default dialog box in eclipse for editors which support this feature
Comment 1 Balazs Grill CLA 2024-05-07 01:00:50 EDT
This issue will be migrated to gitlab.