mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Display the error message and error image in the debug target's label.
This commit is contained in:
parent
2daeadc115
commit
f6969bb0a8
2 changed files with 14 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-05-07 Mikhail Khodjaiants
|
||||
Display the error message and error image in the debug target's label
|
||||
if the error status is set.
|
||||
* CDTDebugModelPresentation.java
|
||||
|
||||
2003-05-06 Mikhail Khodjaiants
|
||||
Ruler tooltips in the dissassembly editor.
|
||||
* DisassemblyEditor.java
|
||||
|
|
|
@ -11,7 +11,6 @@ import java.util.HashMap;
|
|||
|
||||
import org.eclipse.cdt.core.resources.FileStorage;
|
||||
import org.eclipse.cdt.debug.core.cdi.ICDIBreakpointHit;
|
||||
import org.eclipse.cdt.debug.core.cdi.ICDIErrorInfo;
|
||||
import org.eclipse.cdt.debug.core.cdi.ICDIExitInfo;
|
||||
import org.eclipse.cdt.debug.core.cdi.ICDISession;
|
||||
import org.eclipse.cdt.debug.core.cdi.ICDISignalExitInfo;
|
||||
|
@ -236,6 +235,15 @@ public class CDTDebugModelPresentation extends LabelProvider
|
|||
{
|
||||
return fDebugImageRegistry.get( DebugUITools.getImageDescriptor( IDebugUIConstants.IMG_OBJS_DEBUG_TARGET_TERMINATED ) );
|
||||
}
|
||||
IDebugTarget target = (IDebugTarget)element;
|
||||
if ( target.isTerminated() || target.isDisconnected() )
|
||||
{
|
||||
return fDebugImageRegistry.get( DebugUITools.getImageDescriptor( IDebugUIConstants.IMG_OBJS_DEBUG_TARGET_TERMINATED ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
return fDebugImageRegistry.get( DebugUITools.getImageDescriptor( IDebugUIConstants.IMG_OBJS_DEBUG_TARGET ) );
|
||||
}
|
||||
}
|
||||
if ( element instanceof IThread )
|
||||
{
|
||||
|
@ -462,10 +470,6 @@ public class CDTDebugModelPresentation extends LabelProvider
|
|||
{
|
||||
return target.getName() + " (Breakpoint hit)";
|
||||
}
|
||||
if ( info != null && info instanceof ICDIErrorInfo )
|
||||
{
|
||||
return MessageFormat.format( "{0} (Error: {1})", new String[] { target.getName(), ((ICDIErrorInfo)info).getMessage() } );
|
||||
}
|
||||
if ( info != null && info instanceof ICDISession )
|
||||
{
|
||||
return target.getName() + " (Suspended)";
|
||||
|
|
Loading…
Add table
Reference in a new issue