1 /*****************************************************************
2  * Copyright (c) 2012 Texas Instruments and others
3  *
4  * This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License 2.0
6  * which accompanies this distribution, and is available at
7  * https://www.eclipse.org/legal/epl-2.0/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *     Texas Instruments - View action override (Bug 344023)
13  *****************************************************************/
14 package org.eclipse.debug.internal.ui.viewers.model.provisional;
15 
16 import org.eclipse.jface.action.IAction;
17 
18 
19 /**
20  * Action provider allows a debug model to override the standard actions in the
21  * variables view.  The client should return this provider as an adapter to the
22  * input element of the variables view.
23  *
24  * @since 3.8
25  */
26 public interface IViewActionProvider {
27 	/**
28 	 * Get action for a given presentation context and action id.  Implementation
29 	 * should return an action implementation appropriate for given view and action ID.
30 	 * The implementation may register itself as listener to presentation context
31 	 * to determine when to dispose the returned action.
32 	 * @param presentationContext presentation context
33 	 * @param actionID action id
34 	 * @return action or null
35 	 */
getAction(IPresentationContext presentationContext, String actionID)36 	IAction getAction(IPresentationContext presentationContext, String actionID);
37 }
38