Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Piech2009-05-07 15:16:42 +0000
committerPawel Piech2009-05-07 15:16:42 +0000
commit68c0c2a153ca0515c7879e38781aa7b9ed31eaf0 (patch)
tree70a9797e1e00cc0b9edeb0418f0aa5439ef6557f
parentc7f6ece4332ac509af40e9e221b9c1f05c095ba5 (diff)
downloadeclipse.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.java3
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();

Back to the top