This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 77333

Summary: Modified state confused after undo operation
Product: xml Reporter: Nathan Fiedler <nlfiedler>
Component: Schema ToolsAssignee: Nathan Fiedler <nlfiedler>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P1    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 81655    

Description Nathan Fiedler 2006-06-02 19:46:23 UTC
Create a new XML schema file, then add a new component in the Schema view.
Notice that the title bar indicates the document is modified (* appears in the
title) and the Save item in the File menu is enabled. Now invoke Undo from the
Edit menu -- the document is clean and Save is disabled (good so far). Now add
another component -- document is _not_ modified, and _not_ saveable. This seems
wrong.
Comment 1 Nathan Fiedler 2006-07-21 02:26:17 UTC
*** Issue 80638 has been marked as a duplicate of this issue. ***
Comment 2 Nathan Fiedler 2006-07-24 22:47:40 UTC
Fixed in release55 branch by leaving the document as modified when undoing
changes back to the last save point. Due to issue 81023, this is the best
solution we have at the moment. Several hacks were attempted, all of which failed.

/cvs/xml/schema/core/src/org/netbeans/modules/xml/schema/core/multiview/SchemaColumnViewMultiViewElement.java

new revision: 1.1.2.23; previous revision: 1.1.2.22
Comment 3 Nathan Fiedler 2006-08-01 01:21:18 UTC
Meant to mark this verified, not closed.
Comment 4 Nathan Fiedler 2006-08-01 01:21:56 UTC
Going through the paces...
Comment 5 Nathan Fiedler 2006-08-01 01:22:12 UTC
Verified