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.
This is essential in supporting XSL model.
Created attachment 36832 [details] patch in xdm
Created attachment 36833 [details] patch in xam
Reviewed by Denis, Ayub, Chris. Checked in release551: /cvs/xml/xam/src/org/netbeans/modules/xml/xam/dom/DocumentModelAccess.java,v <-- DocumentModelAccess.java new revision: 1.1.2.9.6.2; previous revision: 1.1.2.9.6.1 /cvs/xml/xam/src/org/netbeans/modules/xml/xam/dom/AbstractDocumentComponent.java,v <-- AbstractDocumentComponent.java new revision: 1.1.2.29.6.4; previous revision: 1.1.2.29.6.3 /cvs/xml/xdm/src/org/netbeans/modules/xml/xdm/xam/XDMAccess.java,v <-- XDMAccess.java new revision: 1.1.2.22.6.2; previous revision: 1.1.2.22.6.1 /cvs/xml/xdm/src/org/netbeans/modules/xml/xdm/XDMModel.java,v <-- XDMModel.java new revision: 1.2.2.48.6.4; previous revision: 1.2.2.48.6.3 /cvs/xml/xdm/test/unit/src/org/netbeans/modules/xml/xam/AbstractComponentTest.java,v <-- AbstractComponentTest.java new revision: 1.1.2.17.6.1; previous revision: 1.1.2.17 /cvs/xml/xdm/test/unit/src/org/netbeans/modules/xml/xam/TestComponent.java,v <-- TestComponent.java new revision: 1.1.2.11.18.2; previous revision: 1.1.2.11.18.1 /cvs/xml/xdm/test/unit/src/org/netbeans/modules/xml/xdm/resources/Attic/test_removeChildren.xml,v <-- test_removeChildren.xml new revision: 1.1.4.1; previous revision: 1.1
Using Hula, NB build 200703271800, you cannot select multiple children and delete them in Schema view. Only the first alphabetically from the selection is removed. This happens on both Mac OS X with java 1.5.0_07 and on Ubuntu Linux with java 1.6.0. This is a regression from 5.5.1 w/ Enterprise Pack.
Ok, so the API removeChildren() has been added and hence this bug is actually fixed. I see that XAM do provide the new API and the unit test also work fine. The fact that multi-select and delettion of nodes in schema view doesn't work, is a regression. But that is no way related to this new API. We'll open a new bug for this. Marking this one as fixed.
Verified.