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.ui.externaltools.internal.menu; 12 13 import org.eclipse.debug.ui.actions.AbstractLaunchToolbarAction; 14 import org.eclipse.jface.action.IAction; 15 import org.eclipse.ui.externaltools.internal.model.IExternalToolConstants; 16 17 /** 18 * This action delegate is responsible for producing the 19 * Run > External Tools sub menu contents, which includes 20 * an items to run last tool, favorite tools, and show the 21 * external tools launch configuration dialog. 22 */ 23 public class ExternalToolMenuDelegate extends AbstractLaunchToolbarAction { 24 25 /** 26 * Creates the action delegate 27 */ 28 public ExternalToolMenuDelegate() { 29 super(IExternalToolConstants.ID_EXTERNAL_TOOLS_LAUNCH_GROUP); 30 } 31 32 /* (non-Javadoc) 33 * @see org.eclipse.debug.ui.actions.AbstractLaunchToolbarAction#getOpenDialogAction() 34 */ 35 protected IAction getOpenDialogAction() { 36 IAction action= new OpenExternalToolsConfigurations(); 37 action.setActionDefinitionId("org.eclipse.ui.externalTools.commands.OpenExternalToolsConfigurations"); //$NON-NLS-1$ 38 return action; 39 } 40 } 41