Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 30657

Summary: Better CVS watch/edit options needed for prompts when a read-only file is modified in an editor
Product: [Eclipse Project] Platform Reporter: Ed Burnette <ed.burnette>
Component: TeamAssignee: Jean-Michel Lemieux <jean-michel_lemieux>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P4 Keywords: helpwanted
Version: 2.1   
Target Milestone: 3.0 M7   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Prompt choices are provided when editing read-only files none

Description Ed Burnette CLA 2003-01-30 14:28:47 EST
The CVS Watch/Edit dialog needs some more options to allow always prompting 
whether or not their are other editors. This would be similar to the Visual 
Studio behavior some people (like me) are used to.

I suggest breaking the current radio buttons into two independent options 
similar to this:

"When read-only files are modified in an editor...

x Perform a cvs edit

Prompt first: o never
              o always
              o only if there are other editors"

(x is a check box, and o is a radio button)
Comment 1 Kevin McGuire CLA 2003-01-30 15:27:15 EST
We're about done for 2.1 watch/edit, post 2.2 or open for community supplied 
patch.
Comment 2 Zhiyong Liu CLA 2004-01-26 11:41:23 EST
Created attachment 7565 [details]
Prompt choices are provided when editing read-only files
Comment 3 Michael Valenta CLA 2004-01-26 14:35:39 EST
Fix released to HEAD. Reassigned for verification
Comment 4 Ed Burnette CLA 2004-01-26 15:26:53 EST
Thanks. I didn't go over the patch in detail but I happened to notice some 
missing $NON-NLS-1$ comments for the new preference keys.

+++ src/org/eclipse/team/internal/ccvs/ui/CVSUIPlugin.java	26 Jan 2004 
16:24:15 -0000
+	public static final String NEVERPROMPT = "neverPompt";
+	public static final String ALWAYSPROMPT = "alwaysPompt";	
+	public static final String ONLYPROMPT = "onlyPompt";	

+++ src/org/eclipse/team/internal/ccvs/ui/ICVSUIConstants.java	26 Jan 2004 
16:24:15 -0000
+	public final String PREF_EDIT_PROMPT = "pref_edit_prompt";
Comment 5 Jean-Michel Lemieux CLA 2004-02-11 11:46:37 EST
Patch was applied correctly and I verified that the strings in the patch have 
been NLS'd. Prompting works, but again, I never use watch/edit and thus aren't 
that familiar with the workflows.

Verified behavior.
Comment 6 Ed Burnette CLA 2004-03-02 15:48:08 EST
Looks good, thanks.