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 listening to window lifecycle events.
14: * <p>
15: * This interface may be implemented by clients.
16: * </p>
17: */
18: public interface IWindowListener {
19: /**
20: * Notifies this listener that the given window has been activated.
21: *
22: * @param window the window that was activated
23: */
24: public void windowActivated(IWorkbenchWindow window);
25:
26: /**
27: * Notifies this listener that the given window has been deactivated.
28: *
29: * @param window the window that was activated
30: */
31: public void windowDeactivated(IWorkbenchWindow window);
32:
33: /**
34: * Notifies this listener that the given window has been closed.
35: *
36: * @param window the window that was closed
37: * @see IWorkbenchWindow#close
38: */
39: public void windowClosed(IWorkbenchWindow window);
40:
41: /**
42: * Notifies this listener that the given window has been opened.
43: *
44: * @param window the window that was opened
45: * @see IWorkbench#openWorkbenchWindow
46: */
47: public void windowOpened(IWorkbenchWindow window);
48:
49: }
|