Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: Searching for a string in selected packages?

Tags:

java

eclipse

How do you search for a string in classes in multiple selected packages?

Search multiple strings in eclipse seems to search for the entire workspace, I would like to just search in selected packages.

like image 472
KJW Avatar asked Nov 30 '11 10:11

KJW


2 Answers

Well, you could do the same but set the scope to "selected resources" (don't forget to select the packages).

like image 163
Thomas Avatar answered Sep 19 '22 19:09

Thomas


Search -> File Search -> Working Set -> New -> Java -> And from the selected project(s) add the package(s) you want to search in.

like image 41
Gonzalo Garcia Lasurtegui Avatar answered Sep 23 '22 19:09

Gonzalo Garcia Lasurtegui