Package org.eclipse.ui
Interface IPerspectiveListener3
- All Superinterfaces:
IPerspectiveListener
,IPerspectiveListener2
- All Known Subinterfaces:
IPerspectiveListener4
- All Known Implementing Classes:
PerspectiveAdapter
,PerspectiveTracker
Extension interface to
IPerspectiveListener
which adds support
for listening to perspective open and close events.
This interface may be implemented by clients.
- Since:
- 3.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
perspectiveClosed
(IWorkbenchPage page, IPerspectiveDescriptor perspective) Notifies this listener that a perspective in the given page has been closed.void
perspectiveDeactivated
(IWorkbenchPage page, IPerspectiveDescriptor perspective) Notifies this listener that a perspective in the given page has been deactivated.void
perspectiveOpened
(IWorkbenchPage page, IPerspectiveDescriptor perspective) Notifies this listener that a perspective in the given page has been opened.void
perspectiveSavedAs
(IWorkbenchPage page, IPerspectiveDescriptor oldPerspective, IPerspectiveDescriptor newPerspective) Notifies this listener that a perspective in the given page has been saved as a new perspective with a different perspective descriptor.Methods inherited from interface org.eclipse.ui.IPerspectiveListener
perspectiveActivated, perspectiveChanged
Methods inherited from interface org.eclipse.ui.IPerspectiveListener2
perspectiveChanged
-
Method Details
-
perspectiveOpened
Notifies this listener that a perspective in the given page has been opened.- Parameters:
page
- the page containing the opened perspectiveperspective
- the perspective descriptor that was opened- See Also:
-
perspectiveClosed
Notifies this listener that a perspective in the given page has been closed.- Parameters:
page
- the page containing the closed perspectiveperspective
- the perspective descriptor that was closed- See Also:
-
perspectiveDeactivated
Notifies this listener that a perspective in the given page has been deactivated.- Parameters:
page
- the page containing the deactivated perspectiveperspective
- the perspective descriptor that was deactivated- See Also:
-
perspectiveSavedAs
void perspectiveSavedAs(IWorkbenchPage page, IPerspectiveDescriptor oldPerspective, IPerspectiveDescriptor newPerspective) Notifies this listener that a perspective in the given page has been saved as a new perspective with a different perspective descriptor.- Parameters:
page
- the page containing the saved perspectiveoldPerspective
- the old perspective descriptornewPerspective
- the new perspective descriptor- See Also:
-