diff options
| author | Lakshmi P Shanmugam | 2020-11-18 13:33:52 +0000 |
|---|---|---|
| committer | Lakshmi P Shanmugam | 2020-11-18 15:24:00 +0000 |
| commit | d332c32a974566284216b90ab99de969f3478420 (patch) | |
| tree | 76a646535d8009d8a904780d1730686b2979bb9f | |
| parent | 34354d1ea04ef7d113975754fd82ee9d15d0a488 (diff) | |
| download | eclipse.jdt.debug-d332c32a974566284216b90ab99de969f3478420.tar.gz eclipse.jdt.debug-d332c32a974566284216b90ab99de969f3478420.tar.xz eclipse.jdt.debug-d332c32a974566284216b90ab99de969f3478420.zip | |
Bug 568813 - Empty inspect window and hoverS4_18_0_RC1S4_18_0_M3I20201125-1800I20201125-0600I20201124-1800I20201124-0600I20201123-1800I20201123-0600I20201122-1800I20201122-0600I20201121-1800I20201121-0600I20201120-1800I20201120-0320I20201119-0730I20201118-1800
The empty hover on BigSur is caused due to SWT Bug 567787- Setting Shell visible doesn't send SWT.SetData for Virtual Tree/Table. Due to this the virtual tree in the hover is not populated when set to visible.
The workaround is to call getText on the item so that it is already created when hover is shown.
Change-Id: I9d49902c4013f97db4005c948205aa37ccb4c327
| -rw-r--r-- | org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/ExpressionInformationControlCreator.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/ExpressionInformationControlCreator.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/ExpressionInformationControlCreator.java index 3262c5437..8365652e6 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/ExpressionInformationControlCreator.java +++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/ExpressionInformationControlCreator.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2019 IBM Corporation and others. + * Copyright (c) 2008, 2020 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -14,6 +14,7 @@ package org.eclipse.jdt.internal.debug.ui; import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.Platform; import org.eclipse.debug.core.model.IVariable; import org.eclipse.debug.internal.ui.SWTFactory; import org.eclipse.debug.internal.ui.model.elements.ElementContentProvider; @@ -55,6 +56,7 @@ import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Layout; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Tree; +import org.eclipse.swt.widgets.TreeItem; import org.eclipse.ui.IWorkbenchPage; import org.eclipse.ui.IWorkbenchPartSite; @@ -455,6 +457,12 @@ public class ExpressionInformationControlCreator implements IInformationControlC if (input instanceof IVariable) { fVariable = (IVariable) input; fViewer.setInput(new TreeRoot()); + // Workaround for empty hover popup dialog due to changed Mac API behaviour + if (Platform.OS_MACOSX.equals(Platform.getOS())) { + fTree.setItemCount(1); + TreeItem item = fTree.getItem(0); + item.getText(); + } } } |
