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

Bug 324977

Summary: Incorrect focus when opening wizard and snapshot
Product: [Tools] MAT Reporter: Andrew Johnson <andrew_johnson>
Component: GUIAssignee: Project Inbox <mat.gui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3    
Version: 1.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Shows the overlap of the wizard and file dialog none

Description Andrew Johnson CLA 2010-09-10 10:57:25 EDT
Created attachment 178617 [details]
Shows the overlap of the wizard and file dialog

Open a snapshot, then while it is loading click on the open heap dump menu item again.

The 'Open Snapshot' file dialog appears, then the dump finishes loading, and the 'Getting Started Wizard' appears on top of the file dialog. The only button enabled is cancel, but this doesn't work. The only thing to do is to select the file dialog and dismiss it, then deal with the 'Getting Started Wizard'.
Comment 1 Andrew Johnson CLA 2010-09-10 11:03:22 EDT
It is hard to work out exactly what is wrong - the FileDialog doesn't seem like a usual Shell, but one difference seems to be that when the file dialog is active then the main Memory Analyzer shell has focus, but not when just the wizard is about to appear.

I can avoid the problem using:
            dialog.setBlockOnOpen(getSite().getShell().isFocusControl());
so block on open is set when the file dialog is around, but I don't know why this works.
Comment 2 Andrew Johnson CLA 2010-09-13 05:58:55 EDT
Try this fix in HeapEditor.java
Comment 3 Andrew Johnson CLA 2011-04-11 11:59:00 EDT
Now fixed.