Community
Participate
Working Groups
EG (7/4/01 2:59:46 PM) when the user presses run we should prompt for saving the changes before doing a build. NOTES:
moved to 'active'
*** Bug 4055 has been marked as a duplicate of this bug. ***
Shoudn't this be a general launch concept? Should then be added to depug.core / ui
This will be considered as part of the launch configuration re-work.
*** Bug 5596 has been marked as a duplicate of this bug. ***
I was surprised to discover that this wasn't how Eclipse worked by default. VAME always brought up a dialog when you pressed the running man. (I just tried VAME now to make sure it was not my faulty memory <g>). Please note that should be a YES/NO/CANCEL dialog - all 3 are important. FYI, the VAME dialog's message was as follows: Text has been modified. Save changes? This issue has become quite important - there is a lengthy discussion about it on Eclipse Corner. I highly recommend we add the dialog very soon.
I have added the standard "save dirty editors" dialog when run/debug is pressed. I use IWorkbenchPage.saveAllEditors(boolean) to do this, for all workbench pages in all workbench windows. The unfortunate thing is that if the same file is open in > 1 editor in different pages, the prompt appears N times (if the user declines to save). However, I noticed the same thing happens when shutting down the workbench. I will add a debug preference to "build before run/debug". It would be nice to put the "build" option right in the save dialog, but that would require duplicating all the "save" code currently in the workbench.
Added "Build (if required) before launching" preference to the debug preference page. By default the preference is on. When the preference is checked, the user is prompted to save any unsaved editors, and then the workspace is built before launching.
Please verify (Joe)
Verified.