KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > IWorkbenchWindowPulldownDelegate


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 import org.eclipse.swt.widgets.Control;
14 import org.eclipse.swt.widgets.Menu;
15
16 /**
17  * Interface for a pulldown action that is contributed into the workbench window
18  * tool bar. It extends <code>IWorkbenchWindowActionDelegate</code> and adds an
19  * initialization method to define the menu creator for the action.
20  */

21 public interface IWorkbenchWindowPulldownDelegate extends
22         IWorkbenchWindowActionDelegate {
23     /**
24      * Returns the menu for this pull down action. This method will only be
25      * called if the user opens the pull down menu for the action. Note that it
26      * is the responsibility of the implementor to properly dispose of any SWT menus
27      * created by this method.
28      *
29      * @return the menu
30      */

31     public Menu getMenu(Control parent);
32 }
33
Popular Tags