# HG changeset patch # User dadubrow # Date 1258034096 21600 # Node ID 1774b7103974511c76a0a38405b0fe6dd4ff5ef2 # Parent ecab18a5e4de0327b0165fdb9fe98f76e33e8c19 merge with further dsf debug hover changes in CDT diff -r ecab18a5e4de -r 1774b7103974 cdt/cdt_6_0_x/org.eclipse.cdt.dsf.ui/plugin.properties --- 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 diff -r ecab18a5e4de -r 1774b7103974 cdt/cdt_6_0_x/org.eclipse.cdt.dsf.ui/plugin.xml --- 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 @@ + + + + diff -r ecab18a5e4de -r 1774b7103974 cdt/cdt_6_0_x/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/DsfDebugTextHover.java --- /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; + } +}