KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > menus > IWorkbenchWidget


1 /*******************************************************************************
2  * Copyright (c) 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
12 package org.eclipse.ui.menus;
13
14 import org.eclipse.jface.menus.IWidget;
15 import org.eclipse.ui.IWorkbenchWindow;
16
17
18 /**
19  * Interface used for IWidget's contributed to the
20  * Workbench. Allows the contributed widget to be
21  * informed as to which WorkbenchWindow it's being
22  * hosted in.
23  *
24  * @see org.eclipse.jface.menus.IWidget
25  *
26  * @since 3.2
27  */

28 public interface IWorkbenchWidget extends IWidget {
29     /**
30      * Initializes this widget contribution by supplying the
31      * <code>IWorkbenchWindow</code> that it's being hosted in.
32      * <p>
33      * This method is called after the no argument constructor and
34      * before other methods are called.
35      * </p>
36      *
37      * @param workbenchWindow the current workbench
38      */

39     void init(IWorkbenchWindow workbenchWindow);
40 }
41
Popular Tags