| Summary: | Search history "Open in new" only allows you to open one additional Search view | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Stewart Francis <stew> | ||||
| Component: | Search | Assignee: | Dani Megert <daniel_megert> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | minor | ||||||
| Priority: | P3 | CC: | daniel_megert, markus.kell.r | ||||
| Version: | 3.6.1 | ||||||
| Target Milestone: | 3.8 M5 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Stewart Francis
I agree, that sounds wrong. If you could write a patch to fix this, that would be great :-) I've got a working patch, which I'll submit as soon as I have legal approval from my employer. Created attachment 196713 [details]
org.eclipse.search patch
Finally got approval, whew!
I had to add a new method SearchViewManager.activateNewSearchView() in order to preserve the current behaviour of activateSearchView(true) which activates a search view in LRU order avoiding pinned views. The new method just forces the generation of a new secondaryId, instead of potentially reusing one.
The rest of the changes are to invoke the new API and reorganising for code reuse.
Hi Stewart, I did not yet review the actual code in the patch but a first glance shows that the copyright header isn't updated. Please add your credentials, e.g. Dani Megert <dani@eclipse.org> - this is a bug - https://bugs.eclipse.org... Hi Dani, I'm an IBMer, so I guess any copyright issues will be covered by the existing copyright statements. If you need me to make any additions, let me know. Thanks for the patch Stewart. I decided to fix it in a less intrusive was i.e. with less changes. Please try it out in one of the upcoming builds. Fixed in master: c949d80f0dbcd3579db24de3d55babb130fb984c |