1 /******************************************************************************* 2 * Copyright (c) 2000, 2006 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; 12 13 /** 14 * Interface for an action that is contributed into a view's local tool bar, 15 * pulldown menu, or popup menu. It extends <code>IActionDelegate</code> 16 * and adds an initialization method for connecting the delegate to the view it 17 * should work with. 18 */ 19 public interface IViewActionDelegate extends IActionDelegate { 20 /** 21 * Initializes this action delegate with the view it will work in. 22 * 23 * @param view the view that provides the context for this delegate 24 */ 25 public void init(IViewPart view); 26 } 27