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.
At joint suggestion between Jesse + Jarda: /** This method allows DataFolder to filter its nodes. * * @param filter filter for subdata objects * @return the node delegate (without parent) for this data object */ final Node getClonedNodeDelegate (DataFilter filter) { // [PENDING] or use .class()==FolderNode.class? if (getNodeDelegate () instanceof FolderNode) { // creates normal node and filters its children return new ClonedFilter (filter); } else { return getNodeDelegate ().cloneNode (); } } Should make it nicer to subclass DataFolder + FolderNode. Also CC George.Fink@eng.sun.com.
Automated change of version from Other to Dev.
Actually more complicated than that, but anyway fixed in the trunk. Now getClonedNodeDelegate will pay attention to what it is cloning, and respect subclasses' choices of children. It should no longer be necessary for anyone to override createNodeChildren(DataFilter).
Resolved for 3.4.x or earlier, no new info since then -> verified
Resolved for 3.4.x or earlier, no new info since then -> closing.