Bug 507574 - Open new tab in the same editor window
Summary: Open new tab in the same editor window
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.7   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Patrik Suzzi CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2016-11-16 01:31 EST by Stanislav Spiridonov CLA
Modified: 2020-05-11 12:35 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stanislav Spiridonov CLA 2016-11-16 01:31:54 EST
In case if I have several editor windows open the hover action (JDT, Source) opens the hoverd source in random (last used ?!) window. Will be better to open it in the same window.
Comment 1 Patrik Suzzi CLA 2016-11-18 18:59:17 EST
I recall I observed the mentioned behavior, but I'm not able to reproduce the bug. Do you have a series of steps to reproduce the issue punctually ?

Thanks for reporting !
Comment 2 Stanislav Spiridonov CLA 2016-11-19 12:39:11 EST
I think I found the reason. 

I have enabled the "Closed editors automatically" and limit 8. If I use hover action and have maximum editors opened the Eclipse close one and open new editor not in the initial window (with hover action) but in the same as previously closed editor. 

Steps to reproduce.

Enable "Closed editors automatically"
Set limit to 2
Open in one window any class
Open in second window any other class
Ctrl-click on any type in first window

The hoverd class will open second window.
Comment 3 Patrik Suzzi CLA 2016-11-20 20:49:25 EST
I tested this use case, and I can reproduce the described behavior. As this use case is legal, I was thinking to close this bug report as worksforme.

However, I noticed a similar behavior, without setting the "Close editors automatically". 

Therefore I'm gong to keep this bug open and assign it to me, just in case we can can reproduce the buggy behavior, without setting "Close editors auto..".
Comment 4 Stanislav Spiridonov CLA 2016-11-21 00:52:43 EST
Please look at https://bugs.eclipse.org/bugs/show_bug.cgi?id=507576. It is not directly connected, but may help correctly resolve the case when "Closed editors automatically" is enabled too.

Anyway I still think that Eclipse should open new editor by hover action in the same window even if it close another editor in another window.
Comment 5 Eclipse Genie CLA 2020-05-11 12:35:21 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.