diff options
author | Pawel Piech | 2009-05-07 15:16:42 +0000 |
---|---|---|
committer | Pawel Piech | 2009-05-07 15:16:42 +0000 |
commit | 68c0c2a153ca0515c7879e38781aa7b9ed31eaf0 (patch) | |
tree | 70a9797e1e00cc0b9edeb0418f0aa5439ef6557f | |
parent | c7f6ece4332ac509af40e9e221b9c1f05c095ba5 (diff) | |
download | eclipse.platform.debug-68c0c2a153ca0515c7879e38781aa7b9ed31eaf0.tar.gz eclipse.platform.debug-68c0c2a153ca0515c7879e38781aa7b9ed31eaf0.tar.xz eclipse.platform.debug-68c0c2a153ca0515c7879e38781aa7b9ed31eaf0.zip |
Bug 268187 - [breadcrumb] NPE when pressing F1 on the drop down
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/BreadcrumbItemDropDown.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/BreadcrumbItemDropDown.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/BreadcrumbItemDropDown.java index 46e05c41f..c601a4bd2 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/BreadcrumbItemDropDown.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/BreadcrumbItemDropDown.java @@ -298,13 +298,14 @@ class BreadcrumbItemDropDown implements IBreadcrumbDropDownSite { public void handleEvent(Event event) { Widget focusElement= event.widget; boolean isFocusBreadcrumbTreeFocusWidget= focusElement == shell || focusElement instanceof Control && ((Control)focusElement).getShell() == shell; + boolean isFocusWidgetParentShell= focusElement instanceof Control && ((Control)focusElement).getShell().getParent() == shell; switch (event.type) { case SWT.FocusIn: if (DEBUG) System.out.println("focusIn - is breadcrumb tree: " + isFocusBreadcrumbTreeFocusWidget); //$NON-NLS-1$ - if (!isFocusBreadcrumbTreeFocusWidget) { + if (!isFocusBreadcrumbTreeFocusWidget && !isFocusWidgetParentShell) { if (DEBUG) System.out.println("==> closing shell since focus in other widget"); //$NON-NLS-1$ shell.close(); |