gaphor / gaphor

Gaphor is the simple modeling tool
https://gaphor.org
1.82k stars 196 forks source link

Add Model Watcher for External Changes #3078

Closed danyeaw closed 6 months ago

danyeaw commented 7 months ago

Is your feature request related to a problem?

As someone automating MBSE tasks, I would like to be able to save to a model file using Python that I also have opened in Gaphor, and then have Gaphor prompt me to reload the model with those changes.

Describe the solution you'd like

Gaphor has a file watcher that watches for external model changes. If the model does change it displays a toast like: image

We could probably say Model Has Changed, instead of File.

Describe alternatives you've considered

Click on Open Model, close the currently opened model, and then click on the same model in recent files. However, #3076 impacts this workflow since all of Gaphor closes.

Additional context

Add any other context or screenshots about the feature request here.

danyeaw commented 6 months ago

Implemented by #3121, thanks @amolenaar!