Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.

Add a checkbox "save automatically" to the save dialog when running a simulation #1275

Closed
SimonEit opened this issue Mar 22, 2017 · 4 comments

Comments

@SimonEit
Copy link

At the moment the dialog pops up every time you run a simulation on an unsaved statechart. Far more often the user wants to save the model at this point rather than simulating the model in a dirty state. Therefore the dialog should contain a checkbox, which provides an auto-save functionality.

@SimonEit SimonEit added this to the Inbox milestone Mar 22, 2017
@svenjawendler
Copy link
Contributor

saveandlaunch

@svenjawendler
Copy link
Contributor

SOLUTION

It can be done by setting the preference:
saverequireddirtyeditorsbeforelaunching

Maybe we could ship this with the YSCT preferences?
/instance/org.eclipse.debug.ui/org.eclipse.debug.ui.save_dirty_editors_before_launch=always

@andreasmuelder
Copy link
Member

andreasmuelder commented May 5, 2017

I think the problem here is that a different dialog shows up when a sct editor is in dirty state

unbenannt

@andreasmuelder andreasmuelder modified the milestones: Inbox, Backlog Jul 4, 2017
@SimonEit
Copy link
Author

SimonEit commented Sep 8, 2017

Yes, i was talking about that dialog @andreasmuelder. Its obviously not a showstopper or something, simply an annoying dialog. Adding a "always save before simulation" checkbox to that dialog would fix it.

@andreasmuelder andreasmuelder assigned ghost Sep 19, 2017
@andreasmuelder andreasmuelder modified the milestones: Backlog, S41 Sep 19, 2017
andreasmuelder pushed a commit that referenced this issue Sep 19, 2017
…#1655)

* Changed save prompt for "Run as..." option for a statechart project which is dirty. Saving of project can now be set to be automatically saved.

* Removed duplicate code for calling save prompt. related to #1275

* removed unnecessary super call.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants