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

Bug 68308

Summary: Undo in the plugin.xml editor breaks the actual file
Product: [Eclipse Project] PDE Reporter: Victor Costan <costan>
Component: UIAssignee: PDE-UI-Inbox <pde-ui-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: major    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Victor Costan CLA 2004-06-23 10:56:28 EDT
I'm working on a relatively small plugin, depending on a larger one. While 
trying to debug some launch issues, I removed the dependency on the larger 
plugin. The build process kicked in, and the thing did not compile. So far, so 
good.

Now, I press "undo". In the graphical interface, it looks like everything is 
ok. The build kicks in, and I still see errors. Being puzzled, I look at the 
plugin.xml file, to see that it was corrupted (the <import plugin... > tag had 
overwritten other information, making the file unparsable, and losing some of 
the options I selected).

Note that this is the exact action sequence I took. I did absolutely nothing 
else.

I think this could cause serious confusion for a beginner, such as me.

Will attach link to the project right away.
Comment 1 Victor Costan CLA 2004-06-23 11:01:00 EDT
The projects that I had on my workspace, at that time, can be found at:

http://web.mit.edu/costan/www/bug68308/projects.zip

The behaviour should be easy to reproduce - the exact same thing happened on 
3.0M9 and I200406230010 (last night's integration build).

As a side-note, I'm using Windows XP SP1a, -Xmx384M. The other computer this 
happened on uses Windows XP, and has no special memory settings.
Comment 2 Victor Costan CLA 2004-06-23 11:24:15 EDT
I tried reducing the size of the .zip file by removing the binaries, so please 
do a "clean" for all projects before doing anything else.
Comment 3 Wassim Melhem CLA 2004-06-23 11:30:32 EDT
Too late to address in 3.0.
For Undo-related activities, please use the source page.
Comment 4 Wassim Melhem CLA 2006-06-20 16:46:57 EDT
we'll use bug 68423 to track the undo/redo deficiencies in the plug-in manifest editor.

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