Community
Participate
Working Groups
Build id: I20110920-0856 1. Make some changes to a file versioned under Git. 2. Right-click the project > Team > Commit... 3. Double-click the file in the table to open a compare editor. 4. Try to hit ESC twice to cancel both dialogs, you can't. After canceling from the compare dialog, the focus goes to the workbench window and not the commit dialog. The problem comes from CompareUIPlugin's internalOpenDialog(CompareEditorInput) method. The static getShell() method only ever returns the workbench window's shell. The code should instead retrieve a shell provider from IWorkbench's static getModalDialogShellProvider() method. This will ensure that the compare dialog is parented off of the right shell and allow the focus to be returned to the proper shell after the compare dialog's shell has been closed.
Created attachment 205892 [details] Fix v01 All credits goes to Remy, I just put up a patch from comment 0. Thx!
Created attachment 205893 [details] mylyn/context/zip
Fixed with 97174e215a5dcdb7bf682873e42b68ae118ee99f. Available in builds >=N20111102-2000. Thanks again Remy.