1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 23:05:47 +02:00

Evaluate expressions of detail panel asynchronously.

This commit is contained in:
Mikhail Khodjaiants 2003-06-05 20:47:15 +00:00
parent 1a2df38e62
commit 1d3ef1c353
2 changed files with 13 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2003-06-05 Mikhail Khodjaiants
Evaluate expressions of detail panel asynchronously.
* CDTValueDetailProvider.java
2003-06-04 Mikhail Khodjaiants 2003-06-04 Mikhail Khodjaiants
Implementing the UI support of the detail panel. Implementing the UI support of the detail panel.
* CDTDebugModelPresentation.java * CDTDebugModelPresentation.java

View file

@ -9,6 +9,7 @@ package org.eclipse.cdt.debug.internal.ui;
import org.eclipse.cdt.debug.core.model.ICValue; import org.eclipse.cdt.debug.core.model.ICValue;
import org.eclipse.debug.core.model.IValue; import org.eclipse.debug.core.model.IValue;
import org.eclipse.debug.ui.IValueDetailListener; import org.eclipse.debug.ui.IValueDetailListener;
import org.eclipse.swt.widgets.Display;
/** /**
* Enter type comment. * Enter type comment.
@ -29,11 +30,17 @@ public class CDTValueDetailProvider
return fInstance; return fInstance;
} }
public void computeDetail( IValue value, IValueDetailListener listener ) public void computeDetail( final IValue value, final IValueDetailListener listener )
{ {
if ( value instanceof ICValue ) if ( value instanceof ICValue )
{ {
listener.detailComputed( value, ((ICValue)value).computeDetail() ); Display.getCurrent().asyncExec( new Runnable()
{
public void run()
{
listener.detailComputed( value, ((ICValue)value).evaluateAsExpression() );
}
} );
} }
} }
} }