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.
[dev-200503131900, JDK 1.5.0_02] Go To Class dialog closes after typing name of the class and hitting Enter regardless if the class is available or not. It's very bad behavior for advanced user who is sure that some class is there, but the class is not opened because the list in the dialog is not populated before hitting Enter. There should be some matching that if user presses Enter before the list is populated and entered classname (exactly) is found it will be opened. Who doesn't know that it's required to wait until the list is populated might think that the feature is not working. I even saw NetBeans developer opening the dialog once more because he didn't wait for the list being populated. Steps to reproduce: 1) Create J2SE project 2) Create class B in the project, close the editor with class B 3) Press Ctrl+Shift+O 4) Type B into the text field "Class Name:" and hit Enter (do not wait until the list is populated) Nothing happens.
Yes! I hate this behavior too.
There is one more issue, if user chooses a class and then decides to choose another one, he can by pressing OK
There is one more issue, if user chooses a class and then decides to choose another one, he can by pressing Enter close the dialog. If the list was not populated yet the previous class will open instead of the new one.
OK, but Enter is not supposed to be used as Cancel button to dismiss the dialog and to enter correct value. If it's possible now then it's unwanted side efect of not very well working feature.
Another problem: The dialog is missing any progress indication or wait cursor, so after user types name of the class he doesn't see anything happening untill suddently the list is populated by all matching entries.
Agreed, we should improve the situation for 4.1. We will discuss it further - one of the possibilities could be to disable Enter until a list of classes gets populated.
Removed the fix-in-41 sw. We should address this in 4.2. Thanks!
I'll try to experiment with a solution - e.g. the solution from Jesse in issue 58834 looks reasonable to me.
*** Issue 58834 has been marked as a duplicate of this issue. ***
*** Issue 57925 has been marked as a duplicate of this issue. ***
Reassigning to Dan P. - the target classes are JavaFastOpen and NbJavaJMIFastOpen. Please see the possible solution from Jesse in issue 58834. Thanks.
Three improvements implemented: 1) "Please Wait..." message added into the dialog when the action is computing first time. 2) "Close" is no longer the default button during stage 1) 3) "<No Matching Item Found>" message displayed when the result of the query is empty. Fixed in trunk. /cvs/editor/libsrc/org/netbeans/editor/Bundle.properties new revision: 1.63; previous revision: 1.62 /cvs/editor/libsrc/org/netbeans/editor/ext/ListCompletionView.java new revision: 1.14; previous revision: 1.13 /cvs/java/editor/lib/src/org/netbeans/editor/ext/java/JavaFastOpen.java new revision: 1.6; previous revision: 1.5
It's just diferent dialog :-) Verified in dev-200511091900.