Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324977 - Incorrect focus when opening wizard and snapshot
Summary: Incorrect focus when opening wizard and snapshot
Status: RESOLVED FIXED
Alias: None
Product: MAT
Classification: Tools
Component: GUI (show other bugs)
Version: 1.1   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-10 10:57 EDT by Andrew Johnson CLA
Modified: 2011-04-11 11:59 EDT (History)
0 users

See Also:


Attachments
Shows the overlap of the wizard and file dialog (89.00 KB, image/jpeg)
2010-09-10 10:57 EDT, Andrew Johnson CLA
no flags Details

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