toto_tata
toto_tata

Reputation: 15402

Eclipse: Search => File => 'Enclosing project' option greyed out

I want to search only in my current project but the "enclosing project" option is grayed out most of the time. Sometimes, it is not greyed out... Bug ? Or I am missing something ?

I am on Mac OSX.

Upvotes: 4

Views: 1717

Answers (2)

HCO
HCO

Reputation: 11

Make sure that the "File name patterns" field has a value. An empty value disables the Search button.

Upvotes: 1

Simulant
Simulant

Reputation: 20112

you need to have the focus (by clicking) on a file, that is in a project. This can be done for example by clicking on a file in the Project Explorer or clicking in the Editor View of a file.

If your focus is not on a file (for example, when you click on the Console before searching), the option "enclosing project" is disabled, because no file within a project is selected you could search in.

Upvotes: 5

Related Questions