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 77332 - Undo of order changes results in duplicate nodes
Summary: Undo of order changes results in duplicate nodes
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Model (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Ayub Khan
URL:
Keywords:
: 79258 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-02 19:42 UTC by Nathan Fiedler
Modified: 2006-07-25 07:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Fiedler 2006-06-02 19:42:42 UTC
In the Schema view of the XSD editor, if component nodes are reordered via
dragging and dropping, and the user applies Undo and Redo, this will eventually
lead to duplicate elements appearing.

To reproduce, open the Purchase Order sample schema, select the USAddress node,
drag 'street' above 'name', then undo/redo, drag another node, and undo/redo
again -- a duplicate element appears.

Note that prior to a bug fix in XDM, the duplicate element would appear after
the first undo/redo, so this issue may be a continuation of that earlier problem.
Comment 1 Ayub Khan 2006-07-18 05:12:53 UTC
Fix checked into release55 branch. Please verify using nightly build.
Comment 2 Nam Nguyen 2006-07-18 07:03:25 UTC
Change list:
- xml/schema/api:
P api/test/unit/src/org/netbeans/modules/xml/schema/model/impl/xdm/SyncTest.java
U api/test/unit/src/org/netbeans/modules/xml/schema/model/resources/undoredotest.xsd
U
api/test/unit/src/org/netbeans/modules/xml/schema/model/resources/undoredotest1.xsd
U
api/test/unit/src/org/netbeans/modules/xml/schema/model/resources/undoredotest2.xsd

- xml/xdm:
U xdm/src/org/netbeans/modules/xml/xdm/diff/DefaultElementIdentity.java
P xdm/src/org/netbeans/modules/xml/xdm/diff/DiffFinder.java
P xdm/src/org/netbeans/modules/xml/xdm/diff/XDMTreeDiff.java
U xdm/src/org/netbeans/modules/xml/xdm/xam/XDMAccess.java
P xdm/test/unit/src/org/netbeans/modules/xml/xdm/diff/MergeDiffTest.java
Comment 3 kozlov 2006-07-21 13:34:53 UTC
Virified in build060720.
Comment 4 Nam Nguyen 2006-07-25 07:15:33 UTC
*** Issue 79258 has been marked as a duplicate of this issue. ***