mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-22 15:53:58 +02:00
Added new error status handler.
This commit is contained in:
parent
8280a7b9d1
commit
b34e179a8e
3 changed files with 16 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2004-01-29 Mikhail Khodjaiants
|
||||||
|
Added new error status handler.
|
||||||
|
* plugin.xml
|
||||||
|
* ErrorStatusHandler.java
|
||||||
|
|
||||||
2004-01-22 Alain Magloire
|
2004-01-22 Alain Magloire
|
||||||
|
|
||||||
Set the sharedLibManager autorefresh to be off by defaul
|
Set the sharedLibManager autorefresh to be off by defaul
|
||||||
|
|
|
@ -1172,6 +1172,12 @@
|
||||||
class="org.eclipse.cdt.debug.internal.ui.ErrorStatusHandler"
|
class="org.eclipse.cdt.debug.internal.ui.ErrorStatusHandler"
|
||||||
id="org.eclipse.cdt.debug.internal.ui.ErrorStatusHandler">
|
id="org.eclipse.cdt.debug.internal.ui.ErrorStatusHandler">
|
||||||
</statusHandler>
|
</statusHandler>
|
||||||
|
<statusHandler
|
||||||
|
plugin="org.eclipse.cdt.debug.core"
|
||||||
|
code="5010"
|
||||||
|
class="org.eclipse.cdt.debug.internal.ui.ErrorStatusHandler"
|
||||||
|
id="org.eclipse.cdt.debug.internal.ui.ErrorStatusHandler">
|
||||||
|
</statusHandler>
|
||||||
</extension>
|
</extension>
|
||||||
<extension
|
<extension
|
||||||
point="org.eclipse.debug.ui.debugActionGroups">
|
point="org.eclipse.debug.ui.debugActionGroups">
|
||||||
|
|
|
@ -9,7 +9,9 @@ import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
|
||||||
import org.eclipse.core.runtime.CoreException;
|
import org.eclipse.core.runtime.CoreException;
|
||||||
import org.eclipse.core.runtime.IStatus;
|
import org.eclipse.core.runtime.IStatus;
|
||||||
import org.eclipse.debug.core.IStatusHandler;
|
import org.eclipse.debug.core.IStatusHandler;
|
||||||
|
import org.eclipse.debug.core.model.IDebugElement;
|
||||||
import org.eclipse.debug.core.model.IDebugTarget;
|
import org.eclipse.debug.core.model.IDebugTarget;
|
||||||
|
import org.eclipse.debug.core.model.IThread;
|
||||||
import org.eclipse.jface.dialogs.ErrorDialog;
|
import org.eclipse.jface.dialogs.ErrorDialog;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -26,9 +28,10 @@ public class ErrorStatusHandler implements IStatusHandler
|
||||||
*/
|
*/
|
||||||
public Object handleStatus( final IStatus status, Object source ) throws CoreException
|
public Object handleStatus( final IStatus status, Object source ) throws CoreException
|
||||||
{
|
{
|
||||||
if ( status != null && source != null && source instanceof IDebugTarget )
|
if ( status != null && (source instanceof IDebugTarget || source instanceof IThread ) )
|
||||||
{
|
{
|
||||||
final String title = ((IDebugTarget)source).getName();
|
IDebugTarget target = ((IDebugElement)source).getDebugTarget();
|
||||||
|
final String title = target.getName();
|
||||||
CDebugUIPlugin.getStandardDisplay().asyncExec(
|
CDebugUIPlugin.getStandardDisplay().asyncExec(
|
||||||
new Runnable()
|
new Runnable()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue