mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-05 07:15:39 +02:00
Evaluate expressions of detail panel asynchronously.
This commit is contained in:
parent
1a2df38e62
commit
1d3ef1c353
2 changed files with 13 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
2003-06-05 Mikhail Khodjaiants
|
||||
Evaluate expressions of detail panel asynchronously.
|
||||
* CDTValueDetailProvider.java
|
||||
|
||||
2003-06-04 Mikhail Khodjaiants
|
||||
Implementing the UI support of the detail panel.
|
||||
* CDTDebugModelPresentation.java
|
||||
|
|
|
@ -9,6 +9,7 @@ package org.eclipse.cdt.debug.internal.ui;
|
|||
import org.eclipse.cdt.debug.core.model.ICValue;
|
||||
import org.eclipse.debug.core.model.IValue;
|
||||
import org.eclipse.debug.ui.IValueDetailListener;
|
||||
import org.eclipse.swt.widgets.Display;
|
||||
|
||||
/**
|
||||
* Enter type comment.
|
||||
|
@ -29,11 +30,17 @@ public class CDTValueDetailProvider
|
|||
return fInstance;
|
||||
}
|
||||
|
||||
public void computeDetail( IValue value, IValueDetailListener listener )
|
||||
public void computeDetail( final IValue value, final IValueDetailListener listener )
|
||||
{
|
||||
if ( value instanceof ICValue )
|
||||
{
|
||||
listener.detailComputed( value, ((ICValue)value).computeDetail() );
|
||||
Display.getCurrent().asyncExec( new Runnable()
|
||||
{
|
||||
public void run()
|
||||
{
|
||||
listener.detailComputed( value, ((ICValue)value).evaluateAsExpression() );
|
||||
}
|
||||
} );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue