[Pydev-cvs] org.python.pydev.debug/src/org/python/pydev/debug/core PydevDebugPlugin.java,1.5,1.6
Brought to you by:
fabioz
From: Aleksandar T. <at...@us...> - 2004-05-17 20:17:28
|
Update of /cvsroot/pydev/org.python.pydev.debug/src/org/python/pydev/debug/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21693/src/org/python/pydev/debug/core Modified Files: PydevDebugPlugin.java Log Message: 0.4.1 bug fixes: - urlencode file names in stack - display error dialog asynchronously Index: PydevDebugPlugin.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev.debug/src/org/python/pydev/debug/core/PydevDebugPlugin.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** PydevDebugPlugin.java 7 May 2004 02:03:10 -0000 1.5 --- PydevDebugPlugin.java 17 May 2004 20:17:17 -0000 1.6 *************** *** 1,4 **** --- 1,5 ---- package org.python.pydev.debug.core; + import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.ui.IWorkbenchWindow; *************** *** 63,73 **** } ! public static void errorDialog(String message, Throwable t) { ! IWorkbenchWindow window = getDefault().getWorkbench().getActiveWorkbenchWindow(); ! Shell shell = window == null ? null : window.getShell(); ! if (shell != null) { ! IStatus status= makeStatus(IStatus.ERROR, "Error logged from Pydev Debug: ", t); ! ErrorDialog.openError(shell, "Its an error", message, status); ! } } --- 64,80 ---- } ! public static void errorDialog(final String message, final Throwable t) { ! Display disp = Display.getCurrent(); ! disp.asyncExec(new Runnable() { ! public void run() { ! IWorkbenchWindow window = getDefault().getWorkbench().getActiveWorkbenchWindow(); ! Shell shell = window == null ? null : window.getShell(); ! if (shell != null) { ! IStatus status= makeStatus(IStatus.ERROR, "Error logged from Pydev Debug: ", t); ! ErrorDialog.openError(shell, "Its an error", message, status); ! } ! } ! }); ! log(IStatus.ERROR, message, t); } |