KickJava   Java API By Example, From Geeks To Geeks.

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


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 debug mode. If no configurations have been launched, the launch
21  * configuration dialog is opened.
22  * <p>
23  * This class is not intended to be subclassed. This class may
24  * be instantiated.
25  * </p>
26  * @since 2.0
27  */

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

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