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: /**
13: * Interface for an action that is contributed into the workbench window menu
14: * or tool bar. It extends <code>IActionDelegate</code> and adds an
15: * initialization method for connecting the delegate to the workbench window it
16: * should work with.
17: */
18: public interface IWorkbenchWindowActionDelegate extends IActionDelegate {
19: /**
20: * Disposes this action delegate. The implementor should unhook any references
21: * to itself so that garbage collection can occur.
22: */
23: public void dispose();
24:
25: /**
26: * Initializes this action delegate with the workbench window it will work in.
27: *
28: * @param window the window that provides the context for this delegate
29: */
30: public void init(IWorkbenchWindow window);
31: }
|