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 33296

Summary: Custom editor for Name property of DataNodes should not use multi-line editor
Product: platform Reporter: _ tboudreau <tboudreau>
Component: Data SystemsAssignee: David Konecny <dkonecny>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 33686    
Attachments: Patch to provide 1-line editor

Description _ tboudreau 2003-04-29 11:23:26 UTC
It is now possible to hint that a single line,
JTextField-
based custom editor should be used.  I will attach
a small
patch to accomplish this.

Note, it would also be possible to suppress the custom
editor entirely - it's not terribly useful, as
names are
usually short enough.  If you want to do that, change
the text hint in the patch from "oneline" to 
"suppressCustomEditor".
Comment 1 _ tboudreau 2003-04-29 11:23:55 UTC
Created attachment 10182 [details]
Patch to provide 1-line editor
Comment 2 David Konecny 2003-04-29 13:25:00 UTC
Tim, thanx. I will commit it today. I like the change, I used
"suppressCustomEditor". Btw. are there a constants defined for these
strings?

Next time feel free to commit change like this yourself.
Comment 3 _ tboudreau 2003-04-29 13:33:32 UTC
Thanks.

The strings are defined in core, so I'm afraid you have
to type them :-(

They are, however, documented in the main Explorer 
API documentation.

I think there are a lot of string properties that would be
better off with the single line or no property editor.  
However, I'm a bit afraid to make single line the default,
since it would probably break some things.

BTW, you can also pass the hint "instructions" to provide
instruction text in the string editor.
Comment 4 David Konecny 2003-04-29 16:16:42 UTC
Thanx for explanation.

Fixed in file:
Checking in src/org/openide/loaders/DataNode.java
new revision: 1.3; previous revision: 1.2