org.eclipse.ui.cheatsheets.ICheatSheetAction Maven / Gradle / Ivy
The newest version!
/*******************************************************************************
* Copyright (c) 2004, 2015 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ui.cheatsheets;
/**
* Cheat sheet-aware action.
*
* This interface should be implemented by actions
* (subclasses of {@link org.eclipse.jface.action.Action}) that provide extra
* support for use in cheat sheets. These actions get passed additional
* parameters and the invoking cheat sheet manager.
*
*
* It is strongly recommended that actions intended to be invoked from cheat
* sheets should report success/fail outcome if running the action might fail
* (perhaps because the user cancels the action from its dialog).
* See {@link org.eclipse.jface.action.Action#notifyResult(boolean)} for
* details.
*
*
* @since 3.0
*/
public interface ICheatSheetAction {
/**
* Runs this Cheat sheet-aware action.
*
* @param params an array of strings
* @param manager the cheat sheet manager
*/
public void run(String [] params, ICheatSheetManager manager);
}