Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse is replacing editor window with new Search selection

Tags:

eclipse

When I search for a text string (or find references in workspace) in Eclipse (Version: Helios Service Release 1 Build id: 20100917-0705) I am able to double click on search results to open an editor window and brings me to that line. Let's say I do so, and it opens MyClass.java. I then want to see where some code is used in my jsp. So I open (again, using search results) some_action.jsp.

When I do this, whatever editor window was opened first (in this case, my .java) is replaced with what I open second (the .jsp). I've never encountered this behavior before, and haven't made any changes to my workspace recently. (Well, obviously I have done something, because things don't break without a cause... but I'm not aware of any changes.) This only just started happening without any known catalyst.

Is there a setting I must toggle to remove this undesired behavior?

like image 780
corsiKa Avatar asked Nov 13 '12 22:11

corsiKa


People also ask

How do I open an editor in Eclipse?

But if you want to open the current editor in the Package Explorer, just press Alt+Shift+W, P, and Eclipse will instantly navigate to the file in the Package Explorer.


1 Answers

This is actually the default behavior. To toggle between the two modes use the preference Preferences > General > Search > Reuse editors to show matches.

like image 65
tkotisis Avatar answered Sep 26 '22 18:09

tkotisis