KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*******************************************************************************
2  * Copyright (c) 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
12 package org.eclipse.ui;
13
14 /**
15  * Extension interface to <code>IPerspectiveListener</code> which adds support
16  * for listening to perspective pre-deactivate events.
17  * <p>
18  * This interface may be implemented by clients.
19  * </p>
20  *
21  * @see IPageService#addPerspectiveListener(IPerspectiveListener)
22  * @see PerspectiveAdapter
23  * @since 3.2
24  *
25  */

26 public interface IPerspectiveListener4 extends IPerspectiveListener3 {
27     /**
28      * <p>
29      * Notifies this listener that a perspective in the given page is about to
30      * be deactivated.
31      * </p>
32      * <p>
33      * Note: This does not have the ability to veto a perspective deactivation.
34      * </p>
35      *
36      * @param page
37      * the page containing the deactivated perspective
38      * @param perspective
39      * the perspective descriptor that was deactivated
40      * @see IWorkbenchPage#setPerspective(IPerspectiveDescriptor)
41      */

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