Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 334966

Summary: 'Occurrences in File' search sometimes doesn't take focus
Product: [Eclipse Project] Platform Reporter: Markus Keller <markus.kell.r>
Component: SearchAssignee: Markus Keller <markus.kell.r>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert
Version: 3.7   
Target Milestone: 3.7 M5   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on: 334996    
Bug Blocks:    

Description Markus Keller CLA 2011-01-20 20:01:13 EST
HEAD, this is not bug 56113 / bug 59511

- clear Search view history
- close all instances of Search view
- from a Java editor, search for references to a Java Element
- from a Java editor, search for Occurrences in File
=> table in Search view doesn't have focus

The reason is a combination of design flaws in PageBook, Composite, and SWT's automatic focus fix.

The easiest fix is to make sure AbstractTextSearchViewPage#fPagebook is in a valid state (exactly one of its children is visible).
Comment 1 Markus Keller CLA 2011-01-20 20:02:33 EST
Fixed in HEAD of AbstractTextSearchViewPage.
Comment 2 Dani Megert CLA 2011-01-21 01:12:13 EST
Thanks.