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

Bug 568544

Summary: [Big Sur] File Dialog is unusable, only file type combo can get focus
Product: [Eclipse Project] Platform Reporter: Michael Golubev <borlander>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: alexandr.miloslavskiy, ivanooi, justin, lshanmug, malaperle, p.beauvoir, ts-swt
Version: 4.18   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:
Bug Depends on:    
Bug Blocks: 565691    
Attachments:
Description Flags
screenshot of the issue none

Description Michael Golubev CLA 2020-11-04 20:21:41 EST
Reproduced with the recent Y20201102 build where I was trying to check the latest progress with Big Sur. 

I can reproduce it in many ways, e.g: 
- in Project explorer choose any library jar 
- popup menu | properties | Java source attachment | External File ... 
=> 
the file dialog is open but the only UI element that can receive focus is the file type combo, see screenshot
Comment 1 Michael Golubev CLA 2020-11-04 20:23:28 EST
Created attachment 284675 [details]
screenshot of the issue
Comment 2 Lakshmi P Shanmugam CLA 2020-11-05 05:38:45 EST
Have you tried this with the latest Big Sur beta (11.0.1 Beta)?

I'm unable to reproduce this. I think it got fixed in the latest beta along with Bug 567943.
Comment 3 Phil Beauvoir CLA 2020-11-05 05:42:15 EST
I'm not seeing this either on 11.0.1 and latest I builds.
Comment 4 Phil Beauvoir CLA 2020-11-05 06:22:18 EST
Whenever I create and open a File dialog the type combo is not visible and I have to click the "Options" button. Did I miss something?
Comment 5 Phil Beauvoir CLA 2020-11-05 06:47:38 EST
(In reply to Phil Beauvoir from comment #4)
> Whenever I create and open a File dialog the type combo is not visible and I
> have to click the "Options" button. Did I miss something?

Using a FileDialog in Eclipse the Type Combo is always shown, but when using a modified Snippet72 (https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet72.java) to spawn a FileDialog with SWT.OPEN you have to always press the "Options" button to see the combo.

I think it might be that MacOS is not setting a preference for the spawned app.
Comment 6 Justin Dolezy CLA 2020-11-05 06:57:06 EST
My test steps: Import New Project > Existing projects.. > Next > click Browse.. by Select Root Directory.

I can repro this on Big Sur 11.0 Beta (20A5384c) but NOT 11.0.1 Beta (20B5012d) (in a Parallels VM). Neither with older Eclipse builds (e.g. 2020.06) on the newer Big Sur.
Comment 7 Phil Beauvoir CLA 2020-11-05 06:59:56 EST
We should really only be testing against 11.0.1 beta. I think by the time Apple ships Big Sur (presumably at the same time as Apple Silicon) 11.0.1 will be ready.
Comment 8 Justin Dolezy CLA 2020-11-05 10:28:20 EST
I think the release numbering change muddies the water a bit! Definitely hope they'll not release an 11.0 and go with 11.0.x.

I imagine they'll give a Big Sur release date at the event in 5 days time; unlikely they'll release a GM build before then surely?!
Comment 9 Phil Beauvoir CLA 2020-11-05 16:56:06 EST
(In reply to Justin Dolezy from comment #8)
> I think the release numbering change muddies the water a bit! Definitely
> hope they'll not release an 11.0 and go with 11.0.x.
> 
> I imagine they'll give a Big Sur release date at the event in 5 days time;
> unlikely they'll release a GM build before then surely?!

The theory is that new laptops will ship with 11.0.0 GM because they have to ship something for launch, but 11.0.1 will be available at launch.

11.0.1 RC for devs is available today.
Comment 10 Phil Beauvoir CLA 2020-11-06 09:00:21 EST
Michael, can you test this again with latest Big Sur Beta and latest I build? I think this is no longer happening.
Comment 11 Lakshmi P Shanmugam CLA 2020-11-06 09:47:56 EST
(In reply to Phil Beauvoir from comment #5)
> (In reply to Phil Beauvoir from comment #4)
> > Whenever I create and open a File dialog the type combo is not visible and I
> > have to click the "Options" button. Did I miss something?
> 
> Using a FileDialog in Eclipse the Type Combo is always shown, but when using
> a modified Snippet72
> (https://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/
> org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet72.java) to
> spawn a FileDialog with SWT.OPEN you have to always press the "Options"
> button to see the combo.
> 
> I think it might be that MacOS is not setting a preference for the spawned
> app.

This looks like the new OS behavior. I can also see this with other apps such as TextEdit.app > File > Open and Firefox.app > File > Open File..
Comment 12 Lakshmi P Shanmugam CLA 2020-11-18 12:25:00 EST
Closing as this is not reproducible in BigSur release.