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.
I do not like and do not see reasons for method ContentDescriptor.getVisualObject (). Either get rid of it or document for what it is useful for. I believe that a suitable replacement for this method is Looks.node (contentDescriptor) that can provide enough info about visual representation. The only missing feature is "hiding" which is in my guess done by returning null. If this is true it might be better to replace it by a constructor param "boolean hidden" that would be honored by the look that has ContentDescriptors as children which I believe is provided projects infrastructure anyway.
I think you are right. I'll look what it would cause to remove it.
I think I can remove CD.getVO and register look for CD class which will delegate to the look registered for CD.getProjectMember(). The visibility can be controlled using ProjectMemberVisualDescriptor for CD.getPM(), but I think this will be more complicated, because the visibility is not the property of the object itself, but the object and container showing this object.
UPGRADE GUIDE: Either register the Look for your subclass of ContentDescriptor or register it for the MIME-type of ProjectMember which implements your container (lies in /Containers folder). When displaying node for any ContentDescriptor the system forwards to the ProjectMember look unless there is special Look written and registered for the particular subclass of ContentDescriptor.
Done. Checking in src/org/netbeans/api/projects/ContentDescriptor.java; /cvs/projects/core/src/org/netbeans/api/projects/Attic/ContentDescriptor.java,v <-- ContentDescriptor.java new revision: 1.1.2.10; previous revision: 1.1.2.9
As described in http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the current work on projects prototype has been stopped. Marking issue as VERIFIED --->
---> CLOSED