KickJava   Java API By Example, From Geeks To Geeks.

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


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 the workbench window menu
15  * or tool bar. It extends <code>IActionDelegate</code> and adds an
16  * initialization method for connecting the delegate to the workbench window it
17  * should work with.
18  */

19 public interface IWorkbenchWindowActionDelegate extends IActionDelegate {
20     /**
21      * Disposes this action delegate. The implementor should unhook any references
22      * to itself so that garbage collection can occur.
23      */

24     public void dispose();
25
26     /**
27      * Initializes this action delegate with the workbench window it will work in.
28      *
29      * @param window the window that provides the context for this delegate
30      */

31     public void init(IWorkbenchWindow window);
32 }
33
Popular Tags