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

Bug 315724

Summary: [document] BasicStructuredDocument replaces non editable portion.
Product: [WebTools] WTP Source Editing Reporter: Rakesh <rakes123>
Component: wst.sseAssignee: Nick Sandonato <nsand.dev>
Status: RESOLVED FIXED QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: nsand.dev
Version: unspecified   
Target Milestone: 3.5 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Rakesh CLA 2010-06-04 03:21:31 EDT
Build Identifier: I20100527-1200

If you make portion of a xml file ReadOnly ,we are able to replace that.You will notice this if you invoke Cut,Add comment action on read only portion.Bug 289185 and Bug 315364 appears similar ,but they are different since they deal with read only files and not read only region.I have seen lot problems with source editor in case of Read only files and read only regions.Bug 315343 is similar to this one,but that happens due to reparsing . If we invoke replace function on a read only region , BasicStructuredDocument should fire NoChangeEvent.

Reproducible: Always
Comment 1 Rakesh CLA 2010-06-04 04:13:21 EDT
Ok,i saw that there is provision to throw NoChangeEvent . But due to  Bug 244091 we are passing ignoreReadOnly parameter as 'true' which is responsible for this behaviour. But is it correct to have 'Cut' Action remove portion of Read-Only?