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

Bug 324986

Summary: Undo in PDE Extension attribute field corrupts plugin.xml
Product: [Eclipse Project] PDE Reporter: Michael Houston <schmeeky>
Component: UIAssignee: PDE-UI-Inbox <pde-ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, milesparker
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Michael Houston CLA 2010-09-10 12:06:10 EDT
Build Identifier: 20100617-1415

When editing attribute fields, pressing Ctrl-Z will undo the previous change to the model, but continuing to edit the field will corrupt the plugin.xml file. I suspect it is still acting on file offsets which were correct before the undo action was performed.

Reproducible: Always

Steps to Reproduce:
1. Create a new plugin project, I chose the "Plugin with sample help content" template.
2. Open the extensions page, edit one of the fields to increase the length of the value it contains. I chose the first element and appended 'sss' to the file name.
3. Switch to another extension element and start to type into a field. I typed 'sss' on the end of the second element's filename.
4. Press CTRL-Z - the field will remain unchanged
5. Continue typing into the field
6. Press CTRL-S and switch to the plugin.xml page. It is corrupt.
Comment 1 Miles Parker CLA 2011-03-01 21:31:31 EST
Related to bug 331475? I've seen this one as well.
Comment 2 Miles Parker CLA 2011-03-01 21:35:59 EST
See also bug 68423. Apparently undo isn't supposed to work at all..
Comment 3 Miles Parker CLA 2011-03-01 21:38:01 EST
Correction bug 331485.
Comment 4 Dani Megert CLA 2011-05-06 05:42:07 EDT

*** This bug has been marked as a duplicate of bug 331485 ***