Package org.eclipse.ui
Interface IPerspectiveListener
- All Known Subinterfaces:
IPerspectiveListener2,IPerspectiveListener3,IPerspectiveListener4
- All Known Implementing Classes:
PerspectiveAdapter,PerspectiveTracker,ToggleEditorsVisibilityAction
public interface IPerspectiveListener
Interface for listening to perspective lifecycle events.
This interface may be implemented by clients.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidperspectiveActivated(IWorkbenchPage page, IPerspectiveDescriptor perspective) Notifies this listener that a perspective in the given page has been activated.voidperspectiveChanged(IWorkbenchPage page, IPerspectiveDescriptor perspective, String changeId) Notifies this listener that a perspective has changed in some way (for example, editor area hidden, perspective reset, view show/hide, editor open/close, etc).
-
Method Details
-
perspectiveActivated
Notifies this listener that a perspective in the given page has been activated.- Parameters:
page- the page containing the activated perspectiveperspective- the perspective descriptor that was activated- See Also:
-
perspectiveChanged
Notifies this listener that a perspective has changed in some way (for example, editor area hidden, perspective reset, view show/hide, editor open/close, etc).- Parameters:
page- the page containing the affected perspectiveperspective- the perspective descriptorchangeId- one of theCHANGE_*constants on IWorkbenchPage
-