KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > commands > actions > StepOverCommandAction


1 /*******************************************************************************
2  * Copyright (c) 2006, 2007 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
12 package org.eclipse.debug.internal.ui.commands.actions;
13
14 import org.eclipse.debug.core.commands.IStepOverHandler;
15 import org.eclipse.debug.internal.ui.DebugPluginImages;
16 import org.eclipse.debug.internal.ui.IInternalDebugUIConstants;
17 import org.eclipse.debug.internal.ui.actions.ActionMessages;
18 import org.eclipse.jface.resource.ImageDescriptor;
19
20 /**
21  * Step over action.
22  *
23  * @since 3.3
24  */

25 public class StepOverCommandAction extends DebugCommandAction {
26     
27     public StepOverCommandAction() {
28         setActionDefinitionId("org.eclipse.debug.ui.commands.StepOver"); //$NON-NLS-1$
29
}
30  
31     public String JavaDoc getText() {
32         return ActionMessages.StepOverAction_0;
33     }
34
35     public ImageDescriptor getDisabledImageDescriptor() {
36         return DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_DLCL_STEP_OVER);
37     }
38
39     public String JavaDoc getHelpContextId() {
40         return "org.eclipse.debug.ui.step_over_action_context"; //$NON-NLS-1$
41
}
42
43     public ImageDescriptor getHoverImageDescriptor() {
44         return DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_ELCL_STEP_OVER);
45     }
46
47     public String JavaDoc getId() {
48         return "org.eclipse.debug.ui.debugview.toolbar.stepOver"; //$NON-NLS-1$
49
}
50
51     public ImageDescriptor getImageDescriptor() {
52         return DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_ELCL_STEP_OVER);
53     }
54
55     public String JavaDoc getToolTipText() {
56         return ActionMessages.StepOverAction_3;
57     }
58  
59     protected Class JavaDoc getCommandType() {
60         return IStepOverHandler.class;
61     }
62
63 }
64
Popular Tags