1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Implementation of text hovering.

This commit is contained in:
Mikhail Khodjaiants 2002-09-13 19:02:51 +00:00
parent 26f32a37d5
commit e5d1c04186

View file

@ -83,7 +83,6 @@ public class DebugTextHover implements ITextHover
{
IDebugTarget target = (IDebugTarget)iterator.next();
ICExpressionEvaluator ee = (ICExpressionEvaluator)target.getAdapter( ICExpressionEvaluator.class );
boolean first = true;
if ( ee.canEvaluate() )
{
String result = evaluateExpression( ee, expression );
@ -91,17 +90,14 @@ public class DebugTextHover implements ITextHover
{
if ( result != null )
{
if ( !first )
{
buffer.append( '\n' );
}
first = false;
if ( showDebugTarget )
{
buffer.append( '[' );
buffer.append( target.getName() );
buffer.append( "]: " );
}
buffer.append( expression );
buffer.append( '=' );
buffer.append( result );
}
}