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 125142 - Matisse Add from Palette / Beans / Choose Bean doesn't trim the class name
Summary: Matisse Add from Palette / Beans / Choose Bean doesn't trim the class name
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-11 21:56 UTC by fabriziogiudici
Modified: 2008-03-28 10:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fabriziogiudici 2008-01-11 21:56:46 UTC
The Matisse menu Add from Palette / Beans / Choose Bean allows to manually enter a class name that will be used to instantiate a bean inside a form. The full 
qualified name of the class is asked by means of a free text dialog. The entered name is not trimmed, so if the user mistakenly adds a leading or a trailing 
space (it might happens e.g. if the name is cut and pasted) an error message about the class not being present or not being suitable to the operation appears. 
This bug is very subtle as it might happens that a long time is needed to realize that there's just a trailing space.

PS Of course, having a class browser with autocompletion, such as the one in "Navigate / Go to Type", would be even better.
Comment 1 Peter Pis 2008-01-14 08:38:54 UTC
Reassigning to "form" for evaluation.
Comment 2 Jan Stola 2008-03-28 10:37:27 UTC
Fixed - I agree that it is a minor issue, but it can be very confusing when it happens (e.g. when someone types some 
white space accidentaly into Choose Bean dialog).

Modified file: http://hg.netbeans.org/main?cmd=changeset;node=d0f2aa487b2b