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

Bug 207543

Summary: Search action should activate Task Search page when Task List is in focus
Product: z_Archived Reporter: Eugene Kuleshov <ekuleshov>
Component: MylynAssignee: Project Inbox <mylyn-triaged>
Status: CLOSED MOVED QA Contact:
Severity: enhancement    
Priority: P5 CC: wmitsuda
Version: unspecifiedKeywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Eugene Kuleshov CLA 2007-10-26 02:26:31 EDT
Search action (from main toolbar or Ctrl-H shortcut) should activate Task Search page when Task List is in focus and it should also pickup text from the "Find" field if there is any.
Comment 1 Mik Kersten CLA 2007-10-31 16:07:47 EDT
Afaik the Eclipse convention is to focus the page when an object of the corresponding type is selected (e.g. File search for file, Java for Java file which can be annoying more often than not).  We currently selecte the Task search page when a task is selected in the Task List. 

Willian: if I recall you added the original version of this functionality.  Did you encounter anything about part selections?
Comment 2 Willian Mitsuda CLA 2007-11-01 20:48:47 EDT
The referring bug is bug#168756.

The problem is that it only works if you have something selected, because it tries to get an adapter to ISearchPageScoreComputer from selection, and calculates the best matching search page based on that.

So, if you just start Eclipse, active task list view with nothing selected and type Ctrl+H, it does not work.

It works based on platform's selection service. If you are curious, the implementation is in org.eclipse.search.internal.ui.SearchDialog.getPreferredPageIndex().
Comment 3 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn