Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 312268

Summary: Editors cannot display temporary source when workbench restarts
Product: [WebTools] JSDT Reporter: Michael Rennie <Michael_Rennie>
Component: DebugAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact: Simon Kaegi <simon_kaegi>
Severity: major    
Priority: P3 CC: thatnitind
Version: 3.2Keywords: polish
Target Milestone: 3.2 RC1Flags: simon_kaegi: review+
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
screen shot
none
fix none

Description Michael Rennie CLA 2010-05-10 10:31:23 EDT
Created attachment 167716 [details]
screen shot

code from HEAD

When source is opened by the debugger and it comes from an external or transient location, we fake it up to show a temp file from the workspace. If you shut down Eclipse with one of these editors open and restart you will see an ominous looking editor part with an error stating "Cannot open editor: file does not exist". This is because the editor is saved when you shut down, but on restart the temps source is no longer available.

We should add a hook to close any of these editors when the workbench is shutting down (or something similar to prevent these "busted editors" from showing up).

See attached screen shot
Comment 1 Michael Rennie CLA 2010-05-10 12:47:27 EDT
Created attachment 167753 [details]
fix

Patch provides a hook to close any editors that reference source from the temp location when the workbench shuts down
Comment 2 Michael Rennie CLA 2010-05-10 12:48:38 EDT
This would be a very good RC1 candidate, as seeing the error editor can be a bit of a concern.
Comment 3 Michael Rennie CLA 2010-05-10 14:16:00 EDT
applied to HEAD