01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui;
11:
12: import org.eclipse.swt.widgets.Control;
13: import org.eclipse.swt.widgets.Menu;
14:
15: /**
16: * Interface for a pulldown action that is contributed into the workbench window
17: * tool bar. It extends <code>IWorkbenchWindowActionDelegate</code> and adds an
18: * initialization method to define the menu creator for the action.
19: */
20: public interface IWorkbenchWindowPulldownDelegate extends
21: IWorkbenchWindowActionDelegate {
22: /**
23: * Returns the menu for this pull down action. This method will only be
24: * called if the user opens the pull down menu for the action. Note that it
25: * is the responsibility of the implementor to properly dispose of any SWT menus
26: * created by this method.
27: *
28: * @return the menu
29: */
30: public Menu getMenu(Control parent);
31: }
|