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.
Summary: | Give more hints to user for value of property through property editor dialogs | ||
---|---|---|---|
Product: | platform | Reporter: | Ann Sunhachawee <asunhachawee> |
Component: | Property Editors | Assignee: | _ tboudreau <tboudreau> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | benway, jglick |
Priority: | P3 | Keywords: | API |
Version: | 3.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/explorer/doc-files/api.html#core_editors_custom_parameters | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Attachments: | Patch implementing the enhancement for String editors |
Description
Ann Sunhachawee
2002-12-04 18:12:54 UTC
reassigne to Tim, new owner of property editors. Note that such things are normally done using nonnormative hints set on the property editor, which should be listed in the table in the Explorer API. Attaching a patch which implements this enhancement. Node.Property objects can return Boolean.TRUE from getValue ("oneline") to hint to the property editor that it should use a JTextField, not a JTextArea. Node.Property objects can return Boolean.TRUE from getValue ("suppressCustomEditor") to hint to the property editor that it should return false from supportsCustomEditor(). The attached patch also allows a Node.Property to include user-visible instructions by returning a String from getValue ("instructions") Patch includes necessary docs modifications. Let me know if it is acceptable. Created attachment 9242 [details]
Patch implementing the enhancement for String editors
Note you'll still need to figure out which specific strings in the IDE should use the one-line editor and which should suppress the custom editor altogether, and probably create tasks for developers of those modules. The default behavior is unchanged. Fixed in trunk, StringEditor.java 1.18 and StringCustomEditor.java 1.24. StringEditor now honors the following hints: "oneline" - Boolean - if true, use a JTextField "suppressCustomEditor" - don't show the custom editor button "instructions" - provide text instructions to display above the text field/area (also maps to accessible description) |