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 34836

Summary: Test registration of InplaceEditors
Product: platform Reporter: Jaroslav Tulach <jtulach>
Component: ExplorerAssignee: _ tboudreau <tboudreau>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 29447    

Description Jaroslav Tulach 2003-07-09 16:29:49 UTC
Please write a test to check following contract
from documentation:

Standard implementations of this interface for
text entry, combo boxes and checkboxes are
provided by the property sheet infrastructure.
There are several ways to provide a custom inplace
editor for use in the property sheet:

    * Globally - a module supplying a property
editor for a given class may call
PropertyEnv.registerInplaceEditorFactory(InplaceEditor.Factory).
When the user invokes an editor operation, the
returned inplace editor will be used.
    * On a per-property basis - A Node.Property
may provide a custom inplace editor via hinting.
To do this, the Node.Property instance should
return an instance of InplaceEditor from getValue
("inplaceEditor")

If both methods are used on the same property, the
inplace editor provided by the per-property hint
takes precedence.
Comment 1 _ tboudreau 2003-07-14 14:55:28 UTC
Done.
Comment 2 Jaroslav Tulach 2003-07-15 09:02:08 UTC
Probably CustomEditorInplaceTest, I guess.