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

Bug 193214

Summary: [Cheatsheet][Editors][Simple] Rewrite model to use text edit operations
Product: [Eclipse Project] PDE Reporter: Mike Pawlowski <mike.pawlowski>
Component: UIAssignee: Mike Pawlowski <mike.pawlowski>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: wassim.melhem
Version: 3.3Keywords: noteworthy
Target Milestone: 3.4 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 192946    
Bug Blocks:    

Description Mike Pawlowski CLA 2007-06-18 17:53:11 EDT
Editor currently rewrites entire file on save.
As a result, custom XML input entered in the source page by the user is not preserved.

Rewrite the model to use text edit operations in order to make the editor as smart as the Plug-in Manifest Editor.
Comment 1 Mike Pawlowski CLA 2007-08-13 09:35:34 EDT
*** Bug 189460 has been marked as a duplicate of this bug. ***
Comment 2 Mike Pawlowski CLA 2007-08-13 09:43:52 EDT
*** Bug 199743 has been marked as a duplicate of this bug. ***
Comment 3 Mike Pawlowski CLA 2007-08-13 09:59:30 EDT
*** Bug 199746 has been marked as a duplicate of this bug. ***
Comment 4 Mike Pawlowski CLA 2007-08-13 10:13:17 EDT
*** Bug 199750 has been marked as a duplicate of this bug. ***
Comment 5 Mike Pawlowski CLA 2007-08-13 10:26:55 EDT
*** Bug 199752 has been marked as a duplicate of this bug. ***
Comment 6 Mike Pawlowski CLA 2007-08-13 10:48:27 EDT
Notable Enhancements

* Implemented custom processing of elements containing mixed content 
  (child elements and text content)
  -> For custom 'collapsible' elements, all child elements are processed
     as text content
  -> Created helper utilities in text edit operation framework

* Implemented custom termination of start elements to reduce XML clutter
  -> i.e. Create empty elements or use an end element tag

* Updates Simple Cheat Sheet new file wizard to use the new model

* Handle world change events in the UI using stale markers and refreshing 
  rather than direct updates
  -> Performance enhancement to reduce source page reconciling time on edit


Comment 7 Mike Pawlowski CLA 2007-08-13 11:00:28 EDT
The Simple Cheat Sheet Editor is stable and now has the ability to preserve custom XML mark-up (e.g. comments, elements, etc.) and formatting.  Old and new functionality is operational.

Fixed.  Patch released to HEAD.

Target:  3.4 M2