Bug 88 - VCM: Save modified files before release (1GE7K8N)
Summary: VCM: Save modified files before release (1GE7K8N)
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 2.0 M6   Edit
Assignee: Jean-Michel Lemieux CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 6099 14116 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-10-10 21:36 EDT by Jean-Michel Lemieux CLA
Modified: 2002-05-02 10:41 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Michel Lemieux CLA 2001-10-10 21:36:14 EDT
If the user selects to run a release/catchup on files that are modified, but not saved yet, should we prompt the user that
the files should be saved first or help him save them? 

NOTES:

KM (5/23/01 10:23:24 PM)
	Also there is an existing PR suggesting we should refresh from local too.

KM (05/27/01 3:19:55 PM)
	Future.  This is equivalent to prompting that they save before run/debug (which we don't).
Comment 1 Jean-Michel Lemieux CLA 2001-10-16 10:19:13 EDT
However the refactoring wizards prompt you to save changes.
Comment 2 DJ Houghton CLA 2001-10-23 23:42:32 EDT
PRODUCT VERSION:
0.111 JDK

Comment 3 James Moody CLA 2001-11-20 13:16:41 EST
*** Bug 6099 has been marked as a duplicate of this bug. ***
Comment 4 Kevin McGuire CLA 2002-04-17 15:56:25 EDT
Such prompting now appears in numerous places in the eclipse, except us.
Comment 5 Kevin McGuire CLA 2002-04-19 13:48:33 EDT
*** Bug 14116 has been marked as a duplicate of this bug. ***
Comment 6 Jeff Brown CLA 2002-04-22 13:15:22 EDT
Pretty much all we need.  We might be able to get away with
just saving the editors on the active page, but I doubt it.

	protected void saveAllEditors(final boolean confirm) {
		Display.getDefault().syncExec(new Runnable() {
			public void run() {
				IWorkbenchWindow[] windows = 
PlatformUI.getWorkbench().getWorkbenchWindows();
				for (int i = 0; i < windows.length; i++) {
					IWorkbenchPage[] pages = windows
[i].getPages();
					for (int j = 0; j < pages.length; j++) {
						pages[j].saveAllEditors
(confirm);
					}
				}
			}
		});
	}
Comment 7 Jean-Michel Lemieux CLA 2002-05-02 10:41:36 EDT
Fixed. A CVS preference controls the save behavior (never, auto, prompt) for
dirty editors prior to running CVS actions.