Index:
ChangeLog =================================================================== RCS
file: /home/tools/org.eclipse.cdt.debug.ui/ChangeLog,v retrieving revision
1.51 diff -u -r1.51 ChangeLog --- ChangeLog 4 Dec 2002 15:28:47
-0000 1.51 +++ ChangeLog 9 Dec 2002 00:48:31 -0000 @@ -1,3 +1,7
@@ +2002-12-08 Mikhail Khodjaiants + Implementation of the status
handler for core errors. + *
ErrorStatusHandler.java + 2002-12-04 Mikhail
Khodjaiants Small fix for the Registers view. *
RegistersView.java Index:
src/org/eclipse/cdt/debug/internal/ui/ErrorStatusHandler.java =================================================================== RCS
file:
/home/tools/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/ErrorStatusHandler.java,v retrieving
revision 1.1 diff -u -r1.1 ErrorStatusHandler.java ---
src/org/eclipse/cdt/debug/internal/ui/ErrorStatusHandler.java 25 Sep 2002
15:14:01 -0000 1.1 +++
src/org/eclipse/cdt/debug/internal/ui/ErrorStatusHandler.java 9 Dec 2002
00:48:31 -0000 @@ -5,9 +5,12 @@ */ package
org.eclipse.cdt.debug.internal.ui; +import
org.eclipse.cdt.debug.ui.CDebugUIPlugin; import
org.eclipse.core.runtime.CoreException; import
org.eclipse.core.runtime.IStatus; import
org.eclipse.debug.core.IStatusHandler; +import
org.eclipse.debug.core.model.IDebugTarget; +import
org.eclipse.jface.dialogs.ErrorDialog; /** * @@
-21,8 +24,20 @@ /* (non-Javadoc) * @see
org.eclipse.debug.core.IStatusHandler#handleStatus(IStatus,
Object) */ - public Object handleStatus( IStatus status,
Object source ) throws CoreException + public Object handleStatus( final
IStatus status, Object source ) throws
CoreException { + if ( status != null &&
source != null && source instanceof IDebugTarget
) + { + final String title =
((IDebugTarget)source).getName(); + CDebugUIPlugin.getStandardDisplay().asyncExec( + new
Runnable() + { + public
void
run() + { + ErrorDialog.openError(
CDebugUIPlugin.getActiveWorkbenchShell(), title, null, status
); + } + }
); + } return
null; } }
|