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.
Development build #20050830-1159 of NetBeans 4.2 Windows XP, JDK 1.5.0_05 EA build #02 Description: ============ XML navigator displays weird things when whole content of XML document gets replaced by something else. Basically it doubles the nodes. See attached picture to see what I mean. Steps to reproduce: =================== 1. Create new sample web application project and new XML document underneath. 2. Press CTRL+A to select whole content and invoke "Edit|Copy" from main menu. 3. Press CTRL+V to replace the selection
Created attachment 24367 [details] Screenshot of invalid XML navigator content.
Luckily this has a workaround: use Delete between CTRL+C and CTRL+V keystrokes.
*** Issue 64988 has been marked as a duplicate of this issue. ***
This issue was reported by NetCAT 5.0 team member.
Covered by XMLDocumentModelTest.testRemoveAndAddEntireDocumentContent. The problem seems to be in a wrong order of document elements in the internally stored set since the document is not marked as dirty after the delete/add of the content.
This usecase is not so rare. Please fix this if possible.
*** Issue 67831 has been marked as a duplicate of this issue. ***
*** Issue 63337 has been marked as a duplicate of this issue. ***
*** Issue 64983 has been marked as a duplicate of this issue. ***
fixed Checking in xml/tageditorsupport/src/org/netbeans/modules/editor/structure/api/DocumentElement.java; /cvs/xml/tageditorsupport/src/org/netbeans/modules/editor/structure/api/DocumentElement.java,v <-- DocumentElement.java new revision: 1.5; previous revision: 1.4 done Checking in xml/tageditorsupport/src/org/netbeans/modules/editor/structure/api/DocumentModel.java; /cvs/xml/tageditorsupport/src/org/netbeans/modules/editor/structure/api/DocumentModel.java,v <-- DocumentModel.java new revision: 1.17; previous revision: 1.16 done Checking in xml/text-edit/src/org/netbeans/modules/xml/text/structure/XMLDocumentModelProvider.java; /cvs/xml/text-edit/src/org/netbeans/modules/xml/text/structure/XMLDocumentModelProvider.java,v <-- XMLDocumentModelProvider.java new revision: 1.11; previous revision: 1.10 done
*** Issue 69614 has been marked as a duplicate of this issue. ***
Verified in development build #200512202030 of NetBeans 5.0.