Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Eclipse, how do I limit the Open Type shortcut to only show source files in my current project

I have multiple games and when I am working on these games I often use the Open Type shortcut to find my classes, however every time I use it, all classes in the workspace of the name show up. Since I have multiple games, when I want to search for the Player class, for example, multiple Player classes show up and often times the one I am looking for is not the top.

Is there anyway to change this so that it only shows the files from the selected project or even to just show the ones from the current or most recent project first?

All help is appreciated, thanks.

like image 962
Meeesh Avatar asked Apr 20 '15 23:04

Meeesh


People also ask

How do I change project settings in Eclipse?

Project settings can be configured from the Project Overview page that is accessible from a project's context menu. You can also find the project settings in the . cw-settings file of the project, which you can edit from the IDE. The workspace automatically picks up changes to these fields.

Where is .project File in Eclipse?

By default projects in Eclipse are stored under your workspace.

How do I search for a word in an entire project in Eclipse?

Ctrl + Alt + G can be used to find selected text across a workspace in eclipse.

What is the shortcut key for search in Eclipse?

Clicking on the Search menu and selecting Search or File or Java. Clicking Ctrl + H.


1 Answers

Create a Working Set from which to search:

  1. Open the Open Type dialog.
  2. Click on the arrow in the upper right.
  3. Choose 'Select Working Set' -> New.
  4. From there you can choose what you wish to add to the working set...a Project, a package, certain classes, etc...

Of course, you will have to change this working set depending upon where you wish to search. Further information

like image 58
copeg Avatar answered Sep 21 '22 19:09

copeg