KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > actions > StepReturnActionDelegate


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.debug.internal.ui.actions;
12
13
14 import org.eclipse.debug.core.DebugException;
15 import org.eclipse.debug.core.model.IStep;
16
17 public class StepReturnActionDelegate extends StepActionDelegate {
18
19     /**
20      * @see StepActionDelegate#checkCapability(IStep)
21      */

22     protected boolean checkCapability(IStep element) {
23         return element.canStepReturn();
24     }
25
26     /**
27      * @see StepActionDelegate#stepAction(IStep)
28      */

29     protected void stepAction(IStep element) throws DebugException {
30         element.stepReturn();
31     }
32
33     /**
34      * @see AbstractDebugActionDelegate#getStatusMessage()
35      */

36     protected String JavaDoc getStatusMessage() {
37         return ActionMessages.StepReturnActionDelegate_Exceptions_occurred_attempting_to_run_to_return_of_the_frame__2; //$NON-NLS-1$
38
}
39
40     /**
41      * @see AbstractDebugActionDelegate#getErrorDialogMessage()
42      */

43     protected String JavaDoc getErrorDialogMessage() {
44         return ActionMessages.StepReturnActionDelegate_Run_to_return_failed__1; //$NON-NLS-1$
45
}
46
47     /**
48      * @see org.eclipse.debug.internal.ui.actions.
49      * StepActionDelegate#getActionDefinitionId()
50      */

51     protected String JavaDoc getActionDefinitionId() {
52         return "org.eclipse.debug.internal.ui.actions.StepReturnActionDelegate"; //$NON-NLS-1$
53
}
54 }
55
Popular Tags