Summary: | Store Previous Searches for Startup | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Zachary Calvert <zachcalvert> |
Component: | Search | Assignee: | Platform-Search-Inbox <platform-search-inbox> |
Status: | ASSIGNED --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P5 | CC: | ccalli, daniel_megert, kretes, lrozenblyum, markus.kell.r, pd, remy.suen |
Version: | 3.2.1 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Zachary Calvert
2006-12-29 14:16:40 EST
This is not planed in the near feature. Help would be welcome. I think you're right, the only thing to be stored would be the query. Restoring the history is not a big problem. Automatically restoring the search when the search page is loaded is not always desireable. So this should be configurable. Or as a alternative to an automatic restore, just show a link in the view 'Restore last search...'. I'm interested in implementing this feature. I would like a little direction before I get started, though. First off, where should I be listening for the close event and where should I add the listener? Should I add it to SearchResultsPart in org.eclipse.help.ui.internal.views on the init method, or on the constructor? Should the listener be an application close event, or should it be a page close event? Second, where should I be serializing these queries? As in what file should I use? The IDialogSettings does not support object serialization, nor does the IPreferenceStore. Got any ideas? That would be in the org.eclipse.search plugin (don't confuse with help search). I would persist the history every time it is modified. I would store it in an own file as it isn't a preference and not a view specific (multiple search views show the same history). Put the file inside 'SearchPlugin.getDefault().getStateLocation()' The search history is managed in org.eclipse.search2.internal.ui.QueryManager (fQueries) and I would add the persitence code directly in there. *** Bug 277446 has been marked as a duplicate of this bug. *** Anything new in the subject? >Anything new in the subject?
Nope. Waiting for someone who provides a patch.
This should be an option I think (so if a user wants to preserve search results across restarts he should enable this in Preferences). Anyway : really nice feature. |