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

Bug 177057

Summary: Prompted for out of sync editor before workbench appears
Product: [Eclipse Project] Platform Reporter: John Arthorne <john.arthorne>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, eclipse
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Attachments:
Description Flags
Stack trace at time of prompt
none
Screen shot of prompt
none
Screen shot if I pick "no" none

Description John Arthorne CLA 2007-03-12 16:17:54 EDT
Build: I20070220-1330

Daylight savings time changed over the weekend.  When I started up this morning, I received a prompt before the workbench window appeared saying, "The file has changed on the file system. Do you want to load the changes?".  

The first problem was that I didn't notice this dialog because it went behind another window I had open.  I thought the startup was hung for a few minutes until I found the prompt.

The second problem is that as a user I can't reasonably answer the question. I don't know what file has changed because the editors are not yet visible. Since I have no dirty editors open, there is only actually one copy of the file available, so there is no reason to give me a choice.

Kim: Just CCing you in case it's related to the work to move UI startup out of UI thread.
Comment 1 John Arthorne CLA 2007-03-12 16:18:22 EDT
Created attachment 60610 [details]
Stack trace at time of prompt
Comment 2 John Arthorne CLA 2007-03-12 16:18:47 EDT
Created attachment 60611 [details]
Screen shot of prompt
Comment 3 John Arthorne CLA 2007-03-12 17:28:41 EDT
Created attachment 60621 [details]
Screen shot if I pick "no"

I got this problem again on a different workspace, so for fun I tried picking "No" at the prompt dialog (don't load changed file contents from disk).  I got the resulting editor with empty contents.  I can't see how this is ever a desired result.  Also, this time I was using I20070306-1200.
Comment 4 Dani Megert CLA 2007-03-13 04:49:37 EDT
>I received a prompt before the workbench window appeared saying
That's a Platforum UI bug: they send the partActivated event before the part (and in this case even the workbench) is activated, see bug 168524. Hence also the shell is 'null' and the dialog not parented.

>I got
>the resulting editor with empty contents.  I can't see how this is ever a
>desired result.
We previously we automatically refreshed the resource when opening the editor but that was causing grief to clients like WTP and was also not along the common Eclipse practice where actions on out-of-syc files simply report this and don't auto-sync.
Comment 5 Dani Megert CLA 2007-03-13 04:49:58 EDT

*** This bug has been marked as a duplicate of bug 168524 ***