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