KickJava   Java API By Example, From Geeks To Geeks.

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


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
15 import org.eclipse.debug.core.DebugException;
16 import org.eclipse.debug.core.model.IStep;
17
18 public class StepIntoActionDelegate extends StepActionDelegate {
19     
20     /**
21      * @see StepActionDelegate#checkCapability(IStep)
22      */

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

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

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

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

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