summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorDean Roberts2011-11-18 09:52:14 (EST)
committer Paul Webster2011-11-18 09:52:14 (EST)
commitb38dbdaddc14ca257b64796649e82a42a409ed22 (patch)
treeaeb4e5e490653fc0410b4168cb21eb09eb00a039
parent81ba643bf096f3c32b01b8b85d07dcc63943ac65 (diff)
downloadeclipse.platform.ui-b38dbdaddc14ca257b64796649e82a42a409ed22.zip
eclipse.platform.ui-b38dbdaddc14ca257b64796649e82a42a409ed22.tar.gz
eclipse.platform.ui-b38dbdaddc14ca257b64796649e82a42a409ed22.tar.bz2
Bug 364029 - [QuickAccess] Quick access closes during resize on Linuxv20111118-1452
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/SearchField.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/SearchField.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/SearchField.java
index 8586029..16e0fe9 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/SearchField.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/SearchField.java
@@ -312,6 +312,10 @@ public class SearchField {
table.getDisplay().asyncExec(new Runnable() {
public void run() {
if (!shell.isDisposed() && !table.isDisposed() && !text.isDisposed()) {
+ if (table.getDisplay().getActiveShell() == table.getShell()) {
+ text.setFocus();
+ return;
+ }
if (!shell.isFocusControl() && !table.isFocusControl()
&& !text.isFocusControl()) {
quickAccessContents.doClose();