01: /*******************************************************************************
02: * Copyright (c) 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: * Extension interface to <code>IPerspectiveListener</code> which adds support
14: * for listening to perspective pre-deactivate events.
15: * <p>
16: * This interface may be implemented by clients.
17: * </p>
18: *
19: * @see IPageService#addPerspectiveListener(IPerspectiveListener)
20: * @see PerspectiveAdapter
21: * @since 3.2
22: *
23: */
24: public interface IPerspectiveListener4 extends IPerspectiveListener3 {
25: /**
26: * <p>
27: * Notifies this listener that a perspective in the given page is about to
28: * be deactivated.
29: * </p>
30: * <p>
31: * Note: This does not have the ability to veto a perspective deactivation.
32: * </p>
33: *
34: * @param page
35: * the page containing the deactivated perspective
36: * @param perspective
37: * the perspective descriptor that was deactivated
38: * @see IWorkbenchPage#setPerspective(IPerspectiveDescriptor)
39: */
40: public void perspectivePreDeactivate(IWorkbenchPage page,
41: IPerspectiveDescriptor perspective);
42:
43: }
|