KickJava   Java API By Example, From Geeks To Geeks.

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


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 package org.eclipse.debug.internal.ui.commands.actions;
12
13 import org.eclipse.debug.core.commands.IStepIntoHandler;
14 import org.eclipse.debug.internal.ui.DebugPluginImages;
15 import org.eclipse.debug.internal.ui.IInternalDebugUIConstants;
16 import org.eclipse.debug.internal.ui.actions.ActionMessages;
17 import org.eclipse.jface.resource.ImageDescriptor;
18
19 /**
20  * Step into action
21  *
22  * @since 3.3
23  */

24 public class StepIntoCommandAction extends DebugCommandAction {
25     
26     public StepIntoCommandAction() {
27         setActionDefinitionId("org.eclipse.debug.ui.commands.StepInto"); //$NON-NLS-1$
28
}
29
30     public String JavaDoc getText() {
31         return ActionMessages.StepIntoAction_0;
32     }
33
34     public String JavaDoc getHelpContextId() {
35         return "org.eclipse.debug.ui.step_into_action_context"; //$NON-NLS-1$
36
}
37
38     public String JavaDoc getId() {
39         return "org.eclipse.debug.ui.debugview.toolbar.stepInto"; //$NON-NLS-1$
40
}
41
42     public String JavaDoc getToolTipText() {
43         return ActionMessages.StepIntoAction_3;
44     }
45
46     public ImageDescriptor getDisabledImageDescriptor() {
47         return DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_DLCL_STEP_INTO);
48     }
49
50     public ImageDescriptor getHoverImageDescriptor() {
51         return DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_ELCL_STEP_INTO);
52     }
53
54     public ImageDescriptor getImageDescriptor() {
55         return DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_ELCL_STEP_INTO);
56     }
57
58     protected Class JavaDoc getCommandType() {
59         return IStepIntoHandler.class;
60     }
61 }
62
Popular Tags