KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > IInternalPerspectiveListener


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;
12
13
14 import org.eclipse.ui.*;
15
16 /**
17  * Interface for listening to a perspective lifecycle events.
18  * <p>
19  * This interface may be implemented by clients.
20  * </p>
21  *
22  * @see IPerspectiveService
23  */

24 public interface IInternalPerspectiveListener extends IPerspectiveListener {
25     
26     /**
27      * Notifies this listener that the given page's perspective
28      * has been closed.
29      *
30      * @param page the page whose perspective was closed
31      * @param perspective the descriptor of the perspective that was closed
32      */

33     public void perspectiveClosed(IWorkbenchPage page, IPerspectiveDescriptor perspective);
34
35     /**
36      * Notifies this listener that the given page's perspective
37      * has been opened. The perspective is not active yet.
38      *
39      * @param page the page whose perspective was opened
40      * @param perspective the descriptor of the perspective that was opened
41      */

42     public void perspectiveOpened(IWorkbenchPage page, IPerspectiveDescriptor perspective);
43 }
44
Popular Tags