Bug 148925 - [Workbench] Back/Forward history not updated when a class is renamed
Summary: [Workbench] Back/Forward history not updated when a class is renamed
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P5 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted, triaged
: 175643 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-27 23:42 EDT by Yegor Jbanov CLA
Modified: 2021-04-28 04:04 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 Yegor Jbanov CLA 2006-06-27 23:42:51 EDT
In JDT after renaming a class if you try to go back (i.e. press Alt+Left) and the previous cursor position is in the same file Eclipse will attempt to open the file under the old name and show a blank view with message "File {OLD_FILE_NAME} does not exist.", where {OLD_FILE_NAME} is the old name of the file that was renamed.

NOTE: the file name is renamed simultaneously with the class name which is good.

Steps to reproduce:
1. Create a class, e.g. Aaaa.
2. Type in some (compilable) code.
3. Make sure that Alt+Left sends you to a line within class Aaaa, not some other file. Type more until this condition is satisfied.
4. Return to the latest position using Alt+Right.
5. Save it.
6. Rename the class, e.g. to Bbbb, by putting the cursor at the class declaration and pressing Alt+Shift+R.
7. Press Alt+Left.

Expected:
  Regular "Back" functionality within the file Bbbb.java. After all it's the same file/class just renamed.

Actual:
  Attempts to go back into file Aaaa.java which does not exist.

Possible solution:
  Sync the "Back/Forward" history with refactorings that include renaming, moving, deleting files.
Comment 1 Jerome Lanneluc CLA 2006-06-28 02:48:30 EDT
Moving to JDT UI
Comment 2 Dani Megert CLA 2006-06-28 05:00:57 EDT
See also bug 103730. Even simple deletions aren't handled.
Comment 3 Dani Megert CLA 2007-05-09 04:38:50 EDT
*** Bug 175643 has been marked as a duplicate of this bug. ***
Comment 4 Dani Megert CLA 2009-02-11 06:15:10 EST
*** Bug 264504 has been marked as a duplicate of this bug. ***
Comment 5 Eclipse Genie CLA 2019-05-07 11:58:30 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.

--
The automated Eclipse Genie.
Comment 6 Eclipse Genie CLA 2021-04-28 04:04:48 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.