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 91313 - XDM model does not provide for removal of multiple child nodes in one mutation
Summary: XDM model does not provide for removal of multiple child nodes in one mutation
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: XDM (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Nam Nguyen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-20 09:41 UTC by Nam Nguyen
Modified: 2007-04-04 00:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
patch in xdm (12.79 KB, patch)
2006-12-20 09:50 UTC, Nam Nguyen
Details | Diff
patch in xam (6.79 KB, text/plain)
2006-12-20 09:53 UTC, Nam Nguyen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nam Nguyen 2006-12-20 09:41:45 UTC
This is essential in supporting XSL model.
Comment 1 Nam Nguyen 2006-12-20 09:50:50 UTC
Created attachment 36832 [details]
patch in xdm
Comment 2 Nam Nguyen 2006-12-20 09:53:27 UTC
Created attachment 36833 [details]
patch in xam
Comment 3 Nam Nguyen 2006-12-21 06:56:20 UTC
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
Comment 4 tonybeckham 2007-03-29 21:07:44 UTC
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.
Comment 5 Samaresh Panda 2007-04-03 23:37:53 UTC
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.
Comment 6 Samaresh Panda 2007-04-04 00:28:39 UTC
Verified.