1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Fix for bug 84402: computeDetail executes in the UI thread.

This commit is contained in:
Mikhail Khodjaiants 2005-02-03 23:21:35 +00:00
parent ec8969b5e6
commit 18221d9c12
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2005-02-03 Mikhail Khodjaiants
Fix for bug 84402: computeDetail executes in the UI thread.
* CValueDetailProvider.java
2005-02-03 Mikhail Khodjaiants
Fix for bug 84187: "Toggle Watchpoint" and "Toggle Method Breakpoint" don't work with C editor.
ICWatchpoint should extend ILineBreakpoint to allow watchpoints to be shown in editors.

View file

@ -12,9 +12,9 @@ package org.eclipse.cdt.debug.internal.ui;
import org.eclipse.cdt.debug.core.model.ICStackFrame;
import org.eclipse.cdt.debug.core.model.ICValue;
import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.core.model.IValue;
import org.eclipse.debug.ui.IValueDetailListener;
import org.eclipse.swt.widgets.Display;
/**
* Computes a detailed description of the given value.
@ -35,7 +35,7 @@ public class CValueDetailProvider {
if ( value instanceof ICValue ) {
final ICStackFrame frame = CDebugUIUtils.getCurrentStackFrame();
if ( frame != null ) {
Display.getCurrent().asyncExec( new Runnable() {
DebugPlugin.getDefault().asyncExec( new Runnable() {
public void run() {
listener.detailComputed( value, ((ICValue)value).evaluateAsExpression( frame ) );