KickJava   Java API By Example, From Geeks To Geeks.

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


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 page lifecycle events.
15  * <p>
16  * This interface may be implemented by clients.
17  * </p>
18  *
19  * @see IPageService#addPageListener
20  */

21 public interface IPageListener {
22     /**
23      * Notifies this listener that the given page has been activated.
24      *
25      * @param page the page that was activated
26      * @see IWorkbenchWindow#setActivePage
27      */

28     public void pageActivated(IWorkbenchPage page);
29
30     /**
31      * Notifies this listener that the given page has been closed.
32      *
33      * @param page the page that was closed
34      * @see IWorkbenchPage#close
35      */

36     public void pageClosed(IWorkbenchPage page);
37
38     /**
39      * Notifies this listener that the given page has been opened.
40      *
41      * @param page the page that was opened
42      * @see IWorkbenchWindow#openPage
43      */

44     public void pageOpened(IWorkbenchPage page);
45 }
46
Popular Tags