Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359428 - Format in EGL Editor switches editor to a different file
Summary: Format in EGL Editor switches editor to a different file
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Xiao Bin Chen CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-29 10:10 EDT by broy2 CLA
Modified: 2017-02-23 14:16 EST (History)
2 users (show)

See Also:


Attachments
beforeFormat (99.84 KB, image/png)
2011-09-29 10:10 EDT, broy2 CLA
no flags Details
afterFormat (98.84 KB, image/png)
2011-09-29 10:10 EDT, broy2 CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.