| /******************************************************************************* |
| * Copyright (c) 2004, 2015 IBM Corporation and others. |
| * |
| * This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.ui; |
| |
| /** |
| * Extension interface to <code>IPerspectiveListener</code> which adds support |
| * for listening to part-specific perspective lifecycle events. For example, |
| * this allows a perspective listener to determine which view is being hidden |
| * during a <code>CHANGE_VIEW_HIDE</code> event. |
| * <p> |
| * This interface may be implemented by clients. |
| * </p> |
| * |
| * @see IPageService#addPerspectiveListener(IPerspectiveListener) |
| * @see PerspectiveAdapter |
| * @since 3.0 |
| */ |
| public interface IPerspectiveListener2 extends IPerspectiveListener { |
| |
| /** |
| * Notifies this listener that a part in the given page's perspective has |
| * changed in some way (for example, view show/hide, editor open/close, etc). |
| * |
| * @param page the workbench page containing the perspective |
| * @param perspective the descriptor for the changed perspective |
| * @param partRef the reference to the affected part |
| * @param changeId one of the <code>CHANGE_*</code> constants on |
| * IWorkbenchPage |
| */ |
| void perspectiveChanged(IWorkbenchPage page, IPerspectiveDescriptor perspective, IWorkbenchPartReference partRef, |
| String changeId); |
| } |