Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334966 - 'Occurrences in File' search sometimes doesn't take focus
Summary: 'Occurrences in File' search sometimes doesn't take focus
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Search (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.7 M5   Edit
Assignee: Markus Keller CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 334996
Blocks:
  Show dependency tree
 
Reported: 2011-01-20 20:01 EST by Markus Keller CLA
Modified: 2011-01-21 06:45 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.