1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

The 'Resume Without Signal' action added to the 'Run' menu of the workbench window.

This commit is contained in:
Mikhail Khodjaiants 2003-02-07 18:21:19 +00:00
parent e40eb6ed90
commit 8aeead7f0c
3 changed files with 98 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2003-02-07 Mikhail Khodjaiants
The 'Resume Without Signal' action added to the 'Run' menu of the workbench window.
* SignalZeroWorkbenchActionDelegate.java: new
* plugin.xml
2003-02-07 Mikhail Khodjaiants
Rename 'SignalZeroActionDelegate' to 'SignalZeroObjectActionDelegate'.
* SignalZeroObjectActionDelegate.java

View file

@ -243,6 +243,24 @@
</pluginState>
</enablement>
</action>
<action
id="org.eclipse.cdt.debug.internal.ui.actions.SignalZeroWorkbenchActionDelegate"
hoverIcon="icons/full/clcl16/signal0_co.gif"
class="org.eclipse.cdt.debug.internal.ui.actions.SignalZeroWorkbenchActionDelegate"
disabledIcon="icons/full/dlcl16/signal0_co.gif"
enablesFor="1"
icon="icons/full/elcl16/signal0_co.gif"
helpContextId="resume_without_signal_action_context"
label="%SignalZeroAction.label"
menubarPath="org.eclipse.ui.run/stepGroup"
tooltip="Resume Ignoring Signal">
<enablement>
<pluginState
id="org.eclipse.cdt.debug.ui"
value="activated">
</pluginState>
</enablement>
</action>
</actionSet>
</extension>
<extension
@ -1042,6 +1060,9 @@
<action
id="org.eclipse.cdt.debug.internal.ui.actions.AddExpressionActionDelegate">
</action>
<action
id="org.eclipse.cdt.debug.internal.ui.actions.SignalZeroWorkbenchActionDelegate">
</action>
</debugActionGroup>
</extension>
<extension

View file

@ -0,0 +1,72 @@
/*
*(c) Copyright QNX Software Systems Ltd. 2002.
* All Rights Reserved.
*
*/
package org.eclipse.cdt.debug.internal.ui.actions;
import org.eclipse.cdt.debug.core.model.IResumeWithoutSignal;
import org.eclipse.debug.core.DebugException;
/**
* Enter type comment.
*
* @since: Feb 7, 2003
*/
public class SignalZeroWorkbenchActionDelegate extends AbstractListenerActionDelegate
{
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.actions.AbstractDebugActionDelegate#doAction(java.lang.Object)
*/
protected void doAction( Object element ) throws DebugException
{
if ( element instanceof IResumeWithoutSignal )
{
((IResumeWithoutSignal)element).resumeWithoutSignal();
}
}
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.actions.AbstractDebugActionDelegate#isEnabledFor(java.lang.Object)
*/
protected boolean isEnabledFor( Object element )
{
if ( element instanceof IResumeWithoutSignal )
{
return ((IResumeWithoutSignal)element).canResumeWithoutSignal();
}
return false;
}
/**
* @see AbstractDebugActionDelegate#enableForMultiSelection()
*/
protected boolean enableForMultiSelection()
{
return false;
}
/**
* @see AbstractDebugActionDelegate#getStatusMessage()
*/
protected String getStatusMessage()
{
return "Exceptions occurred attempting to resume without signal.";
}
/**
* @see AbstractDebugActionDelegate#getErrorDialogMessage()
*/
protected String getErrorDialogMessage()
{
return "Resume without signal failed.";
}
/**
* @see AbstractDebugActionDelegate#getErrorDialogTitle()
*/
protected String getErrorDialogTitle()
{
return "Resume Without Signal";
}
}