Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLakshmi Shanmugam2020-11-20 13:09:23 +0000
committerSarika Sinha2020-11-21 18:53:10 +0000
commit8ef1ae4c60afadaff2ef6ebc924583e0ec98fa06 (patch)
tree3c1740d8f675e309f5d85e4acfa91368f8c190c6
parent49305ffef5cd73c2813508440bad5e3e510aa309 (diff)
downloadeclipse.platform.debug-8ef1ae4c60afadaff2ef6ebc924583e0ec98fa06.tar.gz
eclipse.platform.debug-8ef1ae4c60afadaff2ef6ebc924583e0ec98fa06.tar.xz
eclipse.platform.debug-8ef1ae4c60afadaff2ef6ebc924583e0ec98fa06.zip
Bug 568932 - [BigSur] Cannot hover over or inspect variablesI20201122-1800I20201122-0600I20201121-1800
On Big Sur, the empty inspect dialog pop-up 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 pop-up is not populated when set to visible. The workaround is to call getText on the item so that it is already created when pop-up is shown. Change-Id: I241b7c1c75cbc600ad63b4e9d4bd491218d67619 Signed-off-by: Lakshmi Shanmugam <lshanmug@in.ibm.com>
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/InspectPopupDialog.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/InspectPopupDialog.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/InspectPopupDialog.java
index f49774165..ad2501593 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/InspectPopupDialog.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/InspectPopupDialog.java
@@ -16,6 +16,7 @@ package org.eclipse.debug.ui;
import java.util.List;
import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
import org.eclipse.core.runtime.preferences.InstanceScope;
import org.eclipse.debug.core.DebugPlugin;
@@ -51,6 +52,7 @@ import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Tree;
+import org.eclipse.swt.widgets.TreeItem;
import org.eclipse.ui.IViewPart;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchPartSite;
@@ -168,6 +170,13 @@ public class InspectPopupDialog extends DebugPopup {
});
fViewer.setInput(treeRoot);
+ // Workaround for empty inspect dialog due to Mac bug (Bug 567787)
+ if (Platform.OS_MACOSX.equals(Platform.getOS())) {
+ fTree.setItemCount(1);
+ TreeItem item = fTree.getItem(0);
+ item.getText();
+ }
+
return fTree;
}

Back to the top