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'd suggest a way to remove the strange method in ClassPaths that creates a visual component - let's use PropertyEditor. http://www.netbeans.org/download/prj40_prototype/javadoc/JavaClasspathAPI/org/netbeans/api/java/classpath/ClassPaths.html#createClassPathCustomizer(org.netbeans.api.java.classpath.ClassPath, org.netbeans.spi.java.classpath.PathFactory, org.netbeans.api.looks.LookSelector) Instead of this method, write your own PropertyEditor and register it for ClassPath instance (probably in ClassPath static initializer). Make your property implement ExPropertyEditor and recognize attribute "lookSelector" and "factory" (see editors in core). Then anybody who wants to customize ClassPath can just use PropertyPanel or anything better that Tim provides to view the visual component.
I concur with Jarda - having a method to create a visual component there violates separation of concerns. You can use PropertyPanel in custom editor mode and it should allow you to do everything you need. Is there any use case that wouldn't cover?
Fixed. The method has been replaced by ExPropertyEditor.
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