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 122151 - Quick search in functions accepts spaces
Summary: Quick search in functions accepts spaces
Status: REOPENED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-16 14:14 UTC by Egor Ushakov
Modified: 2012-04-24 12:59 UTC (History)
2 users (show)

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 Egor Ushakov 2007-11-16 14:14:59 UTC
I use Netbeans Dev 20071115,
trying to override a method with "Generate Override Methods" dialog (alt+ins ...)
quick search in that dialog does work, so I search for needed function by entering several letters,
then I press space to select this function, but quick search still accepts this space...
As I know Java can not have spaces in function names, so it would be better to exit quick search and select this
function if I press space. Now I have to press escape, because enter closes the window.
For me this is EXTREMELY inconvenient! I accidentally close this window several times before getting the correct result.
Comment 1 Jan Becicka 2007-11-16 17:01:18 UTC
Not a P2.
Comment 2 Jan Lahoda 2007-11-19 09:31:23 UTC
The dialog uses the standard explorer view, and the quick search in it cannot be customized, AFAIK. Or am I wrong?
Comment 3 Petr Nejedly 2007-11-19 13:08:19 UTC
No, quick search can't be customized this way and really support spaces in node names.
At most, you might be able to provide a key listener that would intercept VK_SPACE and interpret it directly as checkbox
select.
Comment 4 Jan Lahoda 2007-12-06 09:17:32 UTC
Well, we have a KeyListener that consumes space events - but there is no place to register it AFAIK. I do not think
there is anything java/editor could do about this right now. So reassigning to openide/explorer.
Comment 5 Antonin Nebuzelsky 2008-02-07 16:11:40 UTC
Reassigning to new module owner Tomas Holy.
Comment 6 t_h 2008-02-27 15:14:37 UTC
The quick search close itself on Enter (without consuming event) so I think simple solution is to intercept Enter in
CheckTreeView$CheckListener.keyPressed() and toggle check box properly, e.g.:
if ((e.getKeyCode() == KeyEvent.VK_ENTER) && (e.getSource() instanceof JTree == false)) {
    TreePath path = tree.getSelectionPath();
    toggle(path);
    e.consume();
}
Reassigning to java editor for consideration.
Comment 7 Jan Lahoda 2008-02-29 13:40:39 UTC
I will think about it, but it sounds more like a workaround anyway.
Comment 8 Jiri Prox 2008-04-11 00:52:27 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 9 Jan Becicka 2008-08-19 09:18:09 UTC
Fixed.
Comment 10 Quality Engineering 2008-08-19 17:10:11 UTC
Integrated into 'main-golden', available in build *200808191401* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/9fbc7d62b762
User: Jan Becicka <jbecicka@netbeans.org>
Log: #122151: Quick search in functions accepts spaces
Comment 11 Egor Ushakov 2012-03-22 13:48:06 UTC
I can reproduced it again in 7.1
Comment 12 Dusan Balek 2012-04-24 12:13:43 UTC
Regression caused by the Quick Search API introduction. Reassigning.
Comment 13 Jan Becicka 2012-04-24 12:41:38 UTC
this is explorer api
Comment 14 Jan Becicka 2012-04-24 12:43:23 UTC
or window system. I don't know.
Simply org.openide.awt.QuickSearch
Comment 15 Jan Becicka 2012-04-24 12:59:33 UTC
platform/quickseach has nothing to do with org.openide.awt.QuickSearch. This code is UI Utilities API module. Author is mentlicher.