Index:
ChangeLog =================================================================== RCS
file: /home/tools/org.eclipse.cdt.debug.ui/ChangeLog,v retrieving revision
1.92 diff -u -r1.92 ChangeLog --- ChangeLog 7 Feb 2003 16:37:21
-0000 1.92 +++ ChangeLog 7 Feb 2003 18:20:27 -0000 @@ -1,4 +1,9
@@ 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 * plugin.xml Index:
plugin.xml =================================================================== RCS
file: /home/tools/org.eclipse.cdt.debug.ui/plugin.xml,v retrieving revision
1.51 diff -u -r1.51 plugin.xml --- plugin.xml 7 Feb 2003 16:37:21
-0000 1.51 +++ plugin.xml 7 Feb 2003 18:20:28 -0000 @@ -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 @@ -1041,6 +1059,9
@@
</action>
<action
id="org.eclipse.cdt.debug.internal.ui.actions.AddExpressionActionDelegate"> +
</action> +
<action +
id="org.eclipse.cdt.debug.internal.ui.actions.SignalZeroWorkbenchActionDelegate">
</action>
</debugActionGroup> </extension> Index:
src/org/eclipse/cdt/debug/internal/ui/actions/SignalZeroWorkbenchActionDelegate.java =================================================================== RCS
file:
src/org/eclipse/cdt/debug/internal/ui/actions/SignalZeroWorkbenchActionDelegate.java diff
-N
src/org/eclipse/cdt/debug/internal/ui/actions/SignalZeroWorkbenchActionDelegate.java ---
/dev/null 1 Jan 1970 00:00:00 -0000 +++
src/org/eclipse/cdt/debug/internal/ui/actions/SignalZeroWorkbenchActionDelegate.java 7
Feb 2003 18:20:28 -0000 @@ -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"; + } +}
|