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:
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();
|
||||
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 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue