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 34627 - Make UI independent: Remove ClassPaths.create*Customizer
Summary: Make UI independent: Remove ClassPaths.create*Customizer
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Classpath (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2003-06-26 15:25 UTC by Jaroslav Tulach
Modified: 2003-12-11 14:11 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2003-06-26 15:25:00 UTC
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.
Comment 1 _ tboudreau 2003-06-27 00:16:57 UTC
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?
Comment 2 Tomas Zezula 2003-07-08 13:25:44 UTC
Fixed.
The method has been replaced by ExPropertyEditor.
Comment 3 Jan Becicka 2003-11-25 14:02:00 UTC
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 --->
Comment 4 Jan Becicka 2003-11-25 14:10:48 UTC
---> CLOSED