Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319199 - [Compatibility] Renamed file won't open after workbench restart
Summary: [Compatibility] Renamed file won't open after workbench restart
Status: VERIFIED FIXED
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.1 M2   Edit
Assignee: Remy Suen CLA
QA Contact: Remy Suen CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-07 18:41 EDT by Stefan Mücke CLA
Modified: 2010-09-14 08:13 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Mücke CLA 2010-07-07 18:41:48 EDT
1. Create a Java class with a typo (e.g. 'HelloWordl')
2. Rename the class via rename refactor in the editor
3. Close the workbench
4. Restart the workbench; result: e4 opens an editor with
   the message 'Resource <old name> does not exist.' instead
   of the refactored/renamed file.
Comment 1 Remy Suen CLA 2010-07-13 13:30:26 EDT
This is because we only persist the editor input on editor creation (in EditorReference's constructor).
Comment 2 Remy Suen CLA 2010-08-09 14:39:16 EDT
Fixed in CVS HEAD.
Comment 3 Remy Suen CLA 2010-09-14 08:13:32 EDT
Verified with I20100913-2011 on Windows XP.