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 175494

Summary: Please provide option to clear the search history.
Product: platform Reporter: hantsy <hantsy>
Component: Quick SearchAssignee: Jaroslav Havlin <jhavlin>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: screenshot
screenshot

Description hantsy 2009-10-27 10:36:38 UTC
I never use this functionality before, it is slow.
I tried yesterday, and search a Hibernate in maven repository.

I started  NetBeans today, and I found the cursor was focused on the search text field. 
And the history was displayed.
I clicked the search icon tried to find an action to clear the history, but I can not find it.
The worst is that the history displayed every time the cursor was focused.
Comment 1 hantsy 2009-10-27 10:38:50 UTC
Created attachment 90119 [details]
screenshot
Comment 2 David Simonek 2009-10-27 11:26:51 UTC
Well, yes the focus thing is unpleasant, but it's kind of Swing behavior combined with the UI of quick search, we can't
do much about it. It is enough to press Esc and focus will go away and history will be hidden.

However, "clear history" command is pretty common, so we should consider adding it. I'm changing to enhancement to track it.
Comment 3 hantsy 2009-12-14 23:56:21 UTC
I think it can design a new UI/Component to accomplish this.
Please steal some idea from JEdit UI.
Comment 4 David Simonek 2009-12-15 01:03:00 UTC
Sorry, I don't understand your comment. Can you please be more specific and explain in greater detail? Thanks.
Comment 5 hantsy 2009-12-15 01:45:39 UTC
Created attachment 92581 [details]
screenshot

Jedit provide an entrybox(reuse in all jedit components) with history management.
But it is not produce this problem.
Comment 6 Jaroslav Havlin 2013-10-09 07:52:25 UTC
http://hg.netbeans.org/core-main/rev/d069b37a9185
Fixed. The "Clear recent searches" action is shown below recent searches in the
Quick Search pop-up menu.
Thank you for reporting.