KickJava   Java API By Example, From Geeks To Geeks.

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


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.IStepReturnHandler;
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 return action.
21  *
22  * @since 3.3
23  */

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