Bug 321833 - [EditorMgmt] [navigation] Navigation Stack does not work with multiple editors on same file
Summary: [EditorMgmt] [navigation] Navigation Stack does not work with multiple editor...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-05 04:49 EDT by Tobias Melcher CLA
Modified: 2019-09-06 15:30 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Melcher CLA 2010-08-05 04:49:54 EDT
Build Identifier: M20100211-1343

Navigation via Back(Alt-Left)/Forward(Alt-Right) is not working properly if multiple editors are opened for the same Java file (context menu on editor tab "New Editor").



Reproducible: Always

Steps to Reproduce:
---------------------------------
public class Class1 {
public void method1() {
	new Class2().method2();
}
}
--------------------------------------
public class Class2 {
	public void method2() {
	}
}
---------------------------------------
1. Open Class1
2. position cursor on call of method2 (line 3)
3. Press F3 to navigate -> editor for Class2 is opened and cursor is positioned correctly on method2
4. Open a second edtitor for Class1 via context menu "New Editor" on editor tab
5. position cursor again on call of method2 (line 3)
6. Press F3 to navigate -> editor for Class2 is opened and cursor is positioned correctly on method2
7. Press Back (Alt-Left) => the first editor for Class1 is brought to top. We expect that the second editor for Class1 should be brought to top.
Comment 1 Tobias Melcher CLA 2010-08-05 04:51:19 EDT
Problem occurs on Linux and Windows systems.
Comment 2 Dani Megert CLA 2010-08-06 07:04:26 EDT
This is not JDT specific. The navigation history only has the editor input (model) information. It's like that since the beginning.

Simpler test case:
1. open any kind of file in an editor
2. editor tab > New Editor
3. open another file in an editor
4. Navigate back (Alt+Left)
==> jumps to first editor
Comment 3 Eclipse Webmaster CLA 2019-09-06 15:30:55 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.

If you have further information on the current state of the bug, please add it. 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.