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

Bug 359428

Summary: Format in EGL Editor switches editor to a different file
Product: z_Archived Reporter: broy2
Component: EDTAssignee: Xiao Bin Chen <xiaobinc>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: chenzhh, jspadea
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
beforeFormat
none
afterFormat none

Description broy2 CLA 2011-09-29 10:10:16 EDT
Created attachment 204295 [details]
beforeFormat

20110929 install build.

I don't know how I get in this state, but it happened in yesterday's build and now in today's build.
I'm verifying defects, so I'm in and out of the editor with different files.  
I used format on dateTest.egl and it worked OK.  I closed that file.
Then I opened a new program mathlib and clicked format.
Screen shot attached.  Notice the only file open is mathlib.
dateTest.egl was opened in the editor and marked dirty like the format had worked on that file.
Screen shot attached.
Comment 1 broy2 CLA 2011-09-29 10:10:45 EDT
Created attachment 204296 [details]
afterFormat
Comment 2 Justin Spadea CLA 2011-09-29 10:40:14 EDT
I've seen this too, and here's a reproducible scenario:

Create a project
Create a program 'pkg.prog1' using the New Program wizard
Create another program 'pkg.prog2'
Both should be open with the default contents.
Format prog2 with ctrl+shift+f
Save prog2.egl
Switch to the prog1 editor that's still open
Format prog1 with ctrl+shift+f
It has switched back to prog2.egl and formatted that file instead. prog2.egl is marked as being dirty, prog1.egl is untouched.

If these steps don't reproduce it on your machine, please do not close this as "works for me".
Comment 3 Xiao Bin Chen CLA 2011-10-10 22:37:46 EDT
Fixed.
Comment 4 broy2 CLA 2011-10-11 20:44:00 EDT
Verified in 20111010 build.