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 page lifecycle events.
14: * <p>
15: * This interface may be implemented by clients.
16: * </p>
17: *
18: * @see IPageService#addPageListener
19: */
20: public interface IPageListener {
21: /**
22: * Notifies this listener that the given page has been activated.
23: *
24: * @param page the page that was activated
25: * @see IWorkbenchWindow#setActivePage
26: */
27: public void pageActivated(IWorkbenchPage page);
28:
29: /**
30: * Notifies this listener that the given page has been closed.
31: *
32: * @param page the page that was closed
33: * @see IWorkbenchPage#close
34: */
35: public void pageClosed(IWorkbenchPage page);
36:
37: /**
38: * Notifies this listener that the given page has been opened.
39: *
40: * @param page the page that was opened
41: * @see IWorkbenchWindow#openPage
42: */
43: public void pageOpened(IWorkbenchPage page);
44: }
|