Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346377 - search: use project gone into when focus in package explorer
Summary: search: use project gone into when focus in package explorer
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Search (show other bugs)
Version: 3.6.2   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Search-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-19 03:46 EDT by arne anka CLA
Modified: 2011-05-20 05:47 EDT (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 arne anka CLA 2011-05-19 03:46:40 EDT
select a project in package explorer
rmc->"go into"
focus on package explorer
hit shortcut for "search"

search offers only "Workspace" or "Working Set". "Selected Resources" and "Enclosing Projects" are not selectable.
when gone into a project, it is impossible to select the whole project -- and selecting all parts visible is rather tedious.

search should recognize when gone into a project and focus on package explorer and allow for "Enclosing Project" at least.


why search when enables or disables fields, empties or retains terms typed in, selecting a previously used search term all of a sudden changes selected scope and filename pattern and the last term used _never_ is available when hitting arrow down in "Containing Text" (it's always the penultimate entry, to get the last one one _must_ use the mouse) already boggles the mind; even more pecularities are really not necessary ...

-- Configuration Details --
Product: Eclipse 1.3.2.20110218-0812 (org.eclipse.epp.package.jee.product)
Installed Features:
 org.eclipse.jdt 3.6.2.r362_v20101117-0800-7z8XFW6FLFlmjJcvz03jyeFBLS_F
Comment 1 Dani Megert CLA 2011-05-20 01:25:18 EDT
This works fine for me. Of course you need have an element selected in order to get 'Selected Resources' and 'Enclosing Projects' enabled.
Comment 2 arne anka CLA 2011-05-20 05:42:54 EDT
apparently i wasn't clear enough: i don't want to select an element first! that's the whole idea with this request.

if i go into a project and am in the package explorer view, "enclosing project" is clearly the given context to search in -- no further selection should be necessary except to limit the scope further.
similarily, being on the top level the given context would be "workspace" and gone into a working set this working set should be the scope (the obvious inconsistencies in use and content of the term "working set" throughout eclipse aside).

simply put: maybe the default in this case should always be "selected resources" and use the context of the package view (or any other with that "go into" feature), ie workspace, working set, or project gone into, without requiring selecting anything.
Comment 3 Dani Megert CLA 2011-05-20 05:47:49 EDT
Search is connected to the outside world via selection and working sets. We won't start to make it dependent on special states of a view.