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.
It is important to be able to obtain contained links from .group data object. Please provide some public API for this.
IMHO a dupe of issue #28422.
I just removed the this issue's dependance on http://www.netbeans.org/issues/show_bug.cgi?id=28623 Is there a use case in which group contents are necessary other than that issue, or should this issue be closed?
Yes, TestTools module use GroupShadow for templates and needs to know the contents. Currently source of getLinks() functionality is ugly copied from GroupShadow data object :-(
I cannot find what is (was?) wrong. Method getLinks() was public at the time this feature request was entered. Please explain whether there is still need for some change or this issue is outdated. Contents of GroupShadow.java on 25 November 2002: http://utilities.netbeans.org/source/browse/utilities/src/org/netbeans/modules/group/Attic/GroupShadow.java?rev=1.32&content-type=text/x-cvsweb-markup&showattic=1
The GroupShadow class from group.jar cannot be used because group module has disabled all possible dependencies in manifest: OpenIDE-Module-Public-Packages: - It is discussed in issue 28859. Jesse Glick said that it should be solved when the issue 28422 is fixed. I don't know. If it is true, then make this issue dependent on 28422. Otherwise suggest a solution.
According to Jiri Skrivanek, it should be sufficient to provide _valid_ contained links, using interface DataObject.Container (as Jesse Glick suggested in issue #28422). I am going to implement it.
Integrated into the trunk. Class org.netbeans.modules.group.GroupShadow now implements interface org.openide.loaders.DataObject.Container which provides method DataObject[] getChildren(). GroupShadow implements this method such that it returns a list of DataObjects the group contains. Any broken links in the group are ignored. The interface also allows to listen for changes of contents.
Verified. Testtools module fixed as suggested.