Is there a way how to search a file or class (I mean by Ctrl + Shift + T or R) only in some particular project and not in all workspace?I have Eclipse Indigo.
-
use the file search. There you can select where you want to search and what – Tarken Aug 23 '12 at 13:17
4 Answers
On Menu
of Ctrl + Shift + T or R
dialogue Small down
arrow on extreme right use option Select Working Set
then set the working set and you are done now you can only search files from selected working set.
Ctrl + Shift + T Or R
>Menu
>Select Working Set
>New
>Java
>Add Or Add All
>Click on Selected Working set in Select Working set Dialog
>Select Working set and you are done.

- 19,001
- 4
- 46
- 72
-
1This is close but in my working set are like 12 projects (is a big Java EE app) so that won't help me – Petr Mensik Aug 23 '12 at 13:42
-
1You can create multiple working sets and each working set can have 1 to n number of projects. So if you only want to search 1 project create working set of only 1 project – Amit Deshpande Aug 23 '12 at 13:44
-
I've never seen or heard anyone having n working sets for n projects. Not to say that this would completely ruin their intended purpose. – Marko Topolnik Aug 23 '12 at 13:49
-
Ok, this can me misunderstanding, by projects I ment pack of JAR and WAR files which creates Java EE app (in EAR file which is part of the workset too). – Petr Mensik Aug 23 '12 at 13:57
-
1@MarkoTopolnik Yes. As the name suggests it is a set so it can be group of one or more. In his scenario It is perfectly fine to create a working set for this. Example was just to explain capablities of it. :) – Amit Deshpande Aug 23 '12 at 13:57
Select the project in project explorer -> Ctrl + H -> File Search Tab -> enter file name in containing text -> Check Selected Resources under Scope.
One more trick -> if you want to search only from *.java files then in File name patterns text box in the same File Search Tab enter *.java or *.props. This will filter out for you

- 5,721
- 9
- 48
- 78
Click on file search select enclosing projects under the subcategory 'scope'. this will enable you to search inside a specific project

- 9
- 3
For that you have the Search menu. You could use Search > File or Search > Java for that. In the search dialog, you can restrict the search scope as only the selected project, or as a predefined working set, as long as some additional options.

- 2,540
- 1
- 18
- 21
-
1I know about this option but is not so convinient as searching through Ctrl+Shift+H so this is not the solution I am looking for. But maybe there is now way how to narrow the search except the workign sets – Petr Mensik Aug 23 '12 at 13:41