From e8de12d706ce2acd99893158ba44fc2343eafdd4 Mon Sep 17 00:00:00 2001 From: Marc Khouzam Date: Thu, 8 Aug 2013 10:29:21 -0400 Subject: [PATCH] Bug 414622 - Enhanced debug hover cannot be turned off Change-Id: Ieee6e37a5cf6451d96597e27bd028612234c4c86 Signed-off-by: Marc Khouzam --- .../eclipse/cdt/dsf/gdb/internal/ui/GdbDebugTextHover.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/GdbDebugTextHover.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/GdbDebugTextHover.java index 88120cef29c..ba03e8ca48b 100644 --- a/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/GdbDebugTextHover.java +++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/GdbDebugTextHover.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2010 Wind River Systems and others. + * Copyright (c) 2009, 2013 Wind River Systems and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -13,6 +13,7 @@ package org.eclipse.cdt.dsf.gdb.internal.ui; import org.eclipse.cdt.dsf.debug.ui.AbstractDsfDebugTextHover; import org.eclipse.cdt.dsf.gdb.IGdbDebugPreferenceConstants; +import org.eclipse.cdt.dsf.gdb.internal.GdbPlugin; import org.eclipse.cdt.dsf.gdb.launching.GdbLaunchDelegate; import org.eclipse.cdt.dsf.mi.service.MIExpressions; import org.eclipse.core.runtime.Platform; @@ -36,7 +37,9 @@ public class GdbDebugTextHover extends AbstractDsfDebugTextHover { @Override protected boolean useExpressionExplorer() { - if (Platform.getPreferencesService().getBoolean(GdbUIPlugin.PLUGIN_ID, + // The preference is part of the GdbPlugin preference store + // Bug 414622 + if (Platform.getPreferencesService().getBoolean(GdbPlugin.PLUGIN_ID, IGdbDebugPreferenceConstants.PREF_USE_INSPECTOR_HOVER, true, null)) { return true;