Bug 2441 - Editor "disabled" on read-only file (1GF656Q)
Summary: Editor "disabled" on read-only file (1GF656Q)
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 2.0 M6   Edit
Assignee: Kai-Uwe Maetzel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:36 EDT by Simon Arsenault CLA
Modified: 2002-05-02 05:27 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Arsenault CLA 2001-10-10 22:36:27 EDT
Create a file resource (f1.txt)
	Mark the file (f1.txt) as read-only thru the properties dialog
	Open the default text editor on the file (f1.txt)
	Try typing, and notice nothing happens.

	We should allow the user to type. Since there are no visual cues to show
	the file is read-only, the user is left confused as why the editor does not work.

	MS Word lets you open a read only file and modify it. Just when you save it
	prompts for another file name.

NOTES:
Comment 1 DJ Houghton CLA 2001-10-29 18:28:17 EST
PRODUCT VERSION:
	0.122

Comment 2 Simon Arsenault CLA 2002-01-22 13:59:21 EST
This is still a problem with the text and java editors. They allow you to type 
in the editor opened on a read-only file. The Save option is also available 
which it should not be, only Save As. Also, closing the editor will ask if you 
want to save changes, say yes and you get an error could not overwrite read-
only file! When closing the editor, show the Save As dialog when file is read-
only.
Comment 3 Kai-Uwe Maetzel CLA 2002-05-02 05:27:19 EDT
We do not allow editing read-only files any longer, given that validateEdit did 
not turn the file into writable. The status line shows whether a file is read-
only or not. This info is updated on part activation and focus changes.