--- a/cdt/cdt_6_0_x/org.eclipse.cdt.dsf.ui/plugin.properties Wed Nov 11 16:36:23 2009 -0600
+++ b/cdt/cdt_6_0_x/org.eclipse.cdt.dsf.ui/plugin.properties Thu Nov 12 07:54:56 2009 -0600
@@ -54,3 +54,6 @@
StaleData.background.label=Stale data background color
StaleData.background.description=This color is used to indicate that a given element of data in a view is stale. User should refresh the view to see current data. The background color is used only when the view is in no-columns mode.
+
+editorTextHover.label=Debugger
+editorTextHover.description=Shows formatted value in debugger hover
\ No newline at end of file
--- a/cdt/cdt_6_0_x/org.eclipse.cdt.dsf.ui/plugin.xml Wed Nov 11 16:36:23 2009 -0600
+++ b/cdt/cdt_6_0_x/org.eclipse.cdt.dsf.ui/plugin.xml Thu Nov 12 07:54:56 2009 -0600
@@ -651,6 +651,15 @@
</description>
</colorDefinition>
</extension>
+ <extension
+ point="org.eclipse.cdt.ui.textHovers">
+ <hover
+ label="%editorTextHover.label"
+ description="%editorTextHover.description"
+ class="org.eclipse.cdt.dsf.debug.ui.DsfDebugTextHover"
+ id="org.eclipse.cdt.dsf.debug.ui.DsfDebugTextHover">
+ </hover>
+ </extension>
</plugin>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/cdt/cdt_6_0_x/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/DsfDebugTextHover.java Thu Nov 12 07:54:56 2009 -0600
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Ericsson 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Ericsson - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.cdt.dsf.debug.ui;
+
+
+/**
+ * An implementation of AbstractDebugTextHover using DSF services.
+ *
+ * @since 2.1
+ */
+public class DsfDebugTextHover extends AbstractDsfDebugTextHover {
+
+ /*
+ * Not needed for the default DSF hover
+ */
+ @Override
+ protected String getModelId() { return null; }
+
+ @Override
+ protected boolean canEvaluate() {
+ if (getFrame() != null) {
+ return true;
+ }
+ return false;
+ }
+}