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

Bug 567943

Summary: [Big Sur] - cannot switch workspace from directory chooser dialog
Product: [Eclipse Project] Platform Reporter: Phil Beauvoir <p.beauvoir>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: black_potato_leo, lshanmug
Version: 4.17   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:
Bug Depends on:    
Bug Blocks: 565691    
Attachments:
Description Flags
Screenshot of Eclipse greyed out
none
SWT Snippet none

Description Phil Beauvoir CLA 2020-10-16 17:54:01 EDT
MacOS Big Sur Beta 10
Eclipse 4.17


1. Launch Eclipse
2. Select File -> Switch Workspace -> Other...
3. Click on the "Browse..." button in the "Eclipse SDK Dialog Launcher" dialog

The directory chooser dialog appears but is greyed out and it is impossible to do anything at this point except Force Quit Eclipse.
Comment 1 Phil Beauvoir CLA 2020-10-16 18:00:58 EDT
Created attachment 284491 [details]
Screenshot of Eclipse greyed out

In fact Eclipse itself is greyed out at this point and no actions are possible except Force Quit.

Screenshot shows this.
Comment 2 Phil Beauvoir CLA 2020-10-16 18:03:13 EDT
Found a way out - press Escape.
Comment 3 Lakshmi P Shanmugam CLA 2020-10-26 16:54:28 EDT
*** Bug 567902 has been marked as a duplicate of this bug. ***
Comment 4 Lakshmi P Shanmugam CLA 2020-10-26 17:06:12 EDT
(In reply to Phil Beauvoir from comment #1)
> Created attachment 284491 [details]
> Screenshot of Eclipse greyed out
> 
> In fact Eclipse itself is greyed out at this point and no actions are
> possible except Force Quit.
> 
> Screenshot shows this.

The problem happens with DirectoryDialog and FileDialog created with the SWT.SHEET style and child shell as parent. If I remove this style, then the dialog opens and responds as expected. It's reproducible with a SWT snippet too.

It's strange, I was able to navigate the dialog using keyboard (Tab, arrow keys & Enter works), but doesn't respond to mouse.
Comment 5 Lakshmi P Shanmugam CLA 2020-10-26 17:08:12 EDT
Created attachment 284572 [details]
SWT Snippet

SWT only snippet to reproduce the problem.
Comment 6 Phil Beauvoir CLA 2020-10-26 17:10:59 EDT
(In reply to Lakshmi P Shanmugam from comment #4)
> (In reply to Phil Beauvoir from comment #1)
> > Created attachment 284491 [details]
> > Screenshot of Eclipse greyed out
> > 
> > In fact Eclipse itself is greyed out at this point and no actions are
> > possible except Force Quit.
> > 
> > Screenshot shows this.
> 
> The problem happens with DirectoryDialog and FileDialog created with the
> SWT.SHEET style and child shell as parent. If I remove this style, then the
> dialog opens and responds as expected. It's reproducible with a SWT snippet
> too.
> 
> It's strange, I was able to navigate the dialog using keyboard (Tab, arrow
> keys & Enter works), but doesn't respond to mouse.

Yes, I see the same behaviour. Only with SWT.SHEET style and a child shell as parent.

Something changed in Big Sur. I'm monitoring the Big Sur beta releases and will continue to test in the hope that this might change in future Big Sur updates.
Comment 7 Lakshmi P Shanmugam CLA 2020-10-26 17:20:49 EDT
As a workaround, Eclipse/SWT can be launched with SWT.SHEET style disabled:
./Eclipse.app/Contents/MacOS/eclipse -vmargs -Dorg.eclipse.swt.sheet=false
Comment 8 Lakshmi P Shanmugam CLA 2020-10-26 17:22:38 EDT
(In reply to Phil Beauvoir from comment #6)
> (In reply to Lakshmi P Shanmugam from comment #4)
> > (In reply to Phil Beauvoir from comment #1)
> > > Created attachment 284491 [details]
> > > Screenshot of Eclipse greyed out
> > > 
> > > In fact Eclipse itself is greyed out at this point and no actions are
> > > possible except Force Quit.
> > > 
> > > Screenshot shows this.
> > 
> > The problem happens with DirectoryDialog and FileDialog created with the
> > SWT.SHEET style and child shell as parent. If I remove this style, then the
> > dialog opens and responds as expected. It's reproducible with a SWT snippet
> > too.
> > 
> > It's strange, I was able to navigate the dialog using keyboard (Tab, arrow
> > keys & Enter works), but doesn't respond to mouse.
> 
> Yes, I see the same behaviour. Only with SWT.SHEET style and a child shell
> as parent.
> 
> Something changed in Big Sur. I'm monitoring the Big Sur beta releases and
> will continue to test in the hope that this might change in future Big Sur
> updates.

Thanks!
Comment 9 Phil Beauvoir CLA 2020-10-29 15:53:45 EDT
I have good news.

MacOS Big Sur 11.0.1 beta was released today and I tested this issue. This issue is resolved.

:-)
Comment 10 Lakshmi P Shanmugam CLA 2020-10-30 05:20:47 EDT
(In reply to Phil Beauvoir from comment #9)
> I have good news.
> 
> MacOS Big Sur 11.0.1 beta was released today and I tested this issue. This
> issue is resolved.
> 
> :-)

That's great, thanks Phil for testing! :)
Closing bug.