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

Bug 167675

Summary: [Workbench] Focus is stolen when using workBenchWindow.run(IRunnableWithProgress())
Product: [Eclipse Project] Platform Reporter: Alan Boxall <boxall>
Component: UIAssignee: Tod Creasey <Tod_Creasey>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Project that contains testcase to reproduce problem none

Description Alan Boxall CLA 2006-12-12 11:31:44 EST
Build ID: M20061206-0800

Steps To Reproduce:
1.unzip and import attached project in to your workspace
2.Run self hosted session
3.click in the combo field and it will go into a loop


More information:
Good design says I shouldn't do any long running request on the UI thread.
So I use the workBenchWindow.run() to do it in the background and allow the UI to update.

I don't do anything with the IProgressMonitor and it still steals the focus from the control.   

I understand that if I do things to the monitor it will affect the UI but in this case I don't modify it.
Comment 1 Alan Boxall CLA 2006-12-12 11:34:08 EST
Created attachment 55508 [details]
Project that contains testcase to reproduce problem

unzip and import this into a workspace
Comment 2 Alan Boxall CLA 2007-01-12 12:00:00 EST
After discussing this bug with Tod I now understand that any use of this method will steal focus.  i.e. I can't call this and expect focus to not be affected even if a progress monitor is not displayed.

I am closing this bug as invalid.