# Uses of Interface
org.eclipse.ui.IPerspectiveListener

Packages that use IPerspectiveListener
Package
Description
org.eclipse.ui
Application programming interfaces for interaction with and extension of the Eclipse Platform User Interface.
org.eclipse.ui.internal

## Uses of IPerspectiveListener in org.eclipse.ui

Subinterfaces of IPerspectiveListener in org.eclipse.ui
Modifier and Type
Interface
Description
`interface`
`IPerspectiveListener2`
Extension interface to `IPerspectiveListener` which adds support for listening to part-specific perspective lifecycle events.
`interface`
`IPerspectiveListener3`
Extension interface to `IPerspectiveListener` which adds support for listening to perspective open and close events.
`interface`
`IPerspectiveListener4`
Extension interface to `IPerspectiveListener` which adds support for listening to perspective pre-deactivate events.
Classes in org.eclipse.ui that implement IPerspectiveListener
Modifier and Type
Class
Description
`class`
`PerspectiveAdapter`
This adapter class provides default implementations for the methods described by the `IPerspectiveListener` interface and its extension interfaces.
Methods in org.eclipse.ui with parameters of type IPerspectiveListener
Modifier and Type
Method
Description
`void`
IPageService.`addPerspectiveListener(IPerspectiveListener listener)`
Adds the given listener for a page's perspective lifecycle events.
`void`
IPageService.`removePerspectiveListener(IPerspectiveListener listener)`
Removes the given page's perspective listener.

## Uses of IPerspectiveListener in org.eclipse.ui.internal

Classes in org.eclipse.ui.internal that implement IPerspectiveListener
Modifier and Type
Class
Description
`class`
`PerspectiveTracker`
Utility class for tracking the active perspective in a window.
`class`
`ToggleEditorsVisibilityAction`
Hides or shows the editor area within the current perspective of the workbench page.
Methods in org.eclipse.ui.internal with parameters of type IPerspectiveListener
Modifier and Type
Method
Description
`void`
PerspectiveListenerList.`addPerspectiveListener(IPerspectiveListener l)`
Adds an IPerspectiveListener to the perspective service.
`void`
SlavePageService.`addPerspectiveListener(IPerspectiveListener listener)`
`void`
WorkbenchWindow.`addPerspectiveListener(IPerspectiveListener l)`
`void`
PerspectiveListenerList.`removePerspectiveListener(IPerspectiveListener l)`
Removes an IPerspectiveListener from the perspective service.
`void`
SlavePageService.`removePerspectiveListener(IPerspectiveListener listener)`
`void`
WorkbenchWindow.`removePerspectiveListener(IPerspectiveListener l)`