mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-05 06:33:23 +02:00
Implementation of text hovering.
This commit is contained in:
parent
26f32a37d5
commit
e5d1c04186
1 changed files with 2 additions and 6 deletions
|
@ -83,7 +83,6 @@ public class DebugTextHover implements ITextHover
|
||||||
{
|
{
|
||||||
IDebugTarget target = (IDebugTarget)iterator.next();
|
IDebugTarget target = (IDebugTarget)iterator.next();
|
||||||
ICExpressionEvaluator ee = (ICExpressionEvaluator)target.getAdapter( ICExpressionEvaluator.class );
|
ICExpressionEvaluator ee = (ICExpressionEvaluator)target.getAdapter( ICExpressionEvaluator.class );
|
||||||
boolean first = true;
|
|
||||||
if ( ee.canEvaluate() )
|
if ( ee.canEvaluate() )
|
||||||
{
|
{
|
||||||
String result = evaluateExpression( ee, expression );
|
String result = evaluateExpression( ee, expression );
|
||||||
|
@ -91,17 +90,14 @@ public class DebugTextHover implements ITextHover
|
||||||
{
|
{
|
||||||
if ( result != null )
|
if ( result != null )
|
||||||
{
|
{
|
||||||
if ( !first )
|
|
||||||
{
|
|
||||||
buffer.append( '\n' );
|
|
||||||
}
|
|
||||||
first = false;
|
|
||||||
if ( showDebugTarget )
|
if ( showDebugTarget )
|
||||||
{
|
{
|
||||||
buffer.append( '[' );
|
buffer.append( '[' );
|
||||||
buffer.append( target.getName() );
|
buffer.append( target.getName() );
|
||||||
buffer.append( "]: " );
|
buffer.append( "]: " );
|
||||||
}
|
}
|
||||||
|
buffer.append( expression );
|
||||||
|
buffer.append( '=' );
|
||||||
buffer.append( result );
|
buffer.append( result );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue