KickJava   Java API By Example, From Geeks To Geeks.

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


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 StepOverActionDelegate extends StepActionDelegate {
18
19     /**
20      * @see StepActionDelegate#checkCapability(IStep)
21      */

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

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

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

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

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