KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > misc > TestPageListener


1 /*******************************************************************************
2  * Copyright (c) 2000, 2003 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.ui.internal.misc;
12
13 import org.eclipse.ui.*;
14
15 /**
16  * Prints out page listener events.
17  */

18 public class TestPageListener implements IPageListener {
19 /**
20  * TestPageListener constructor comment.
21  * @issue seems like garbage - no one using it
22  */

23 public TestPageListener() {
24     super();
25 }
26 /**
27  * Notifies this listener that the given page has been activated.
28  *
29  * @param page the page that was activated
30  * @see IWorkbenchWindow#setActivePage
31  */

32 public void pageActivated(IWorkbenchPage page) {
33     System.out.println("pageActivated(" + page + ")");//$NON-NLS-2$//$NON-NLS-1$
34
}
35 /**
36  * Notifies this listener that the given page has been closed.
37  *
38  * @param page the page that was closed
39  * @see IWorkbenchPage#close
40  */

41 public void pageClosed(IWorkbenchPage page) {
42     System.out.println("pageClosed(" + page + ")");//$NON-NLS-2$//$NON-NLS-1$
43
}
44 /**
45  * Notifies this listener that the given page has been opened.
46  *
47  * @param page the page that was opened
48  * @see IWorkbenchWindow#openPage
49  */

50 public void pageOpened(IWorkbenchPage page) {
51     System.out.println("pageOpened(" + page + ")");//$NON-NLS-2$//$NON-NLS-1$
52
}
53 }
54
Popular Tags