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 - Custom editor for Name property of DataNodes should not use multi-line editor
Summary: Custom editor for Name property of DataNodes should not use multi-line editor
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks: 33686
  Show dependency tree
 
Reported: 2003-04-29 11:23 UTC by _ tboudreau
Modified: 2008-12-22 20:32 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Patch to provide 1-line editor (1.06 KB, patch)
2003-04-29 11:23 UTC, _ tboudreau
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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