01: /*******************************************************************************
02: * Copyright (c) 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.menus;
11:
12: import org.eclipse.jface.menus.IWidget;
13: import org.eclipse.ui.IWorkbenchWindow;
14:
15: /**
16: * Interface used for IWidget's contributed to the
17: * Workbench. Allows the contributed widget to be
18: * informed as to which WorkbenchWindow it's being
19: * hosted in.
20: *
21: * @see org.eclipse.jface.menus.IWidget
22: *
23: * @since 3.2
24: */
25: public interface IWorkbenchWidget extends IWidget {
26: /**
27: * Initializes this widget contribution by supplying the
28: * <code>IWorkbenchWindow</code> that it's being hosted in.
29: * <p>
30: * This method is called after the no argument constructor and
31: * before other methods are called.
32: * </p>
33: *
34: * @param workbenchWindow the current workbench
35: */
36: void init(IWorkbenchWindow workbenchWindow);
37: }
|