KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > ui > actions > RunAction


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.ui.actions;
12
13
14 import org.eclipse.debug.core.ILaunchManager;
15 import org.eclipse.debug.internal.ui.actions.ExecutionAction;
16 import org.eclipse.debug.ui.IDebugUIConstants;
17
18 /**
19  * Action to launch the last launch configuration that was successfully
20  * launched, in run mode. If no configurations have been launched, the launch
21  * configuration dialog is opened.
22  * </p>
23  * <p>
24  * This class is not intended to be subclassed. This class may
25  * be instantiated.
26  * </p>
27  * @since 2.0
28  */

29 public final class RunAction extends ExecutionAction {
30     
31     public RunAction() {
32         super(IDebugUIConstants.ID_RUN_LAUNCH_GROUP);
33     }
34
35     /**
36      * @see ExecutionAction#getMode()
37      */

38     protected String JavaDoc getMode() {
39         return ILaunchManager.RUN_MODE;
40     }
41
42 }
43
Popular Tags