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 193252

Summary: Add support for null values into string property editor
Product: platform Reporter: _ rkubacki <rkubacki>
Component: Property EditorsAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.0   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on: 197581    
Bug Blocks:    
Attachments: patch against release69 repo

Description _ rkubacki 2010-12-10 15:52:54 UTC
I'd appreciate if org/netbeans/beaninfo/editors/StringEditor had similar support for nullValue as ObjectEditor does. Sometimes it is usefull to have a string property where null has special meaning and should be displayed in a nice way (for example if you use BeanNode and its generated properties).

Mostly it mean to override getAsText() and modify setAsText(), attachEnv(. And document it in org/openide/explorer/doc-files/propertyViewCustomization.html. Is (fast) API review needed for this?
Comment 1 Jaroslav Tulach 2010-12-13 14:58:49 UTC
Send me patch with test.
Comment 2 Jaroslav Tulach 2010-12-17 17:55:15 UTC
No patch, no fix. Reopen when the patch is ready.
Comment 3 _ rkubacki 2010-12-22 10:46:28 UTC
Created attachment 104390 [details]
patch against release69 repo
Comment 4 _ rkubacki 2010-12-22 10:48:04 UTC
Patch is attached.

> No patch, no fix.

Are you serious?
Comment 5 Jaroslav Tulach 2010-12-22 20:13:55 UTC
Of course I am serious. Change requests need a sponsor (see http://wiki.apidesign.org/wiki/Bugzilla), thanks for sponsoring this change request!
Comment 6 Jaroslav Tulach 2010-12-22 20:22:59 UTC
ergonomics#8059829bba70
Comment 7 Quality Engineering 2010-12-29 07:09:21 UTC
Integrated into 'main-golden', will be available in build *201012290001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/8059829bba70
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #193252: Add support for null values into string property editor. Donated by Radim Kubacki