Package org.eclipse.ui.internal
Class SlavePageService
java.lang.Object
org.eclipse.ui.internal.SlavePageService
- All Implemented Interfaces:
IPageService
,IDisposable
- Since:
- 3.4
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPageListener
(IPageListener listener) Adds the given listener for page lifecycle events.void
addPerspectiveListener
(IPerspectiveListener listener) Adds the given listener for a page's perspective lifecycle events.void
dispose()
Disposes of this service.Returns the active page.void
removePageListener
(IPageListener listener) Removes the given page listener.void
Removes the given page's perspective listener.
-
Constructor Details
-
SlavePageService
-
-
Method Details
-
addPageListener
Description copied from interface:IPageService
Adds the given listener for page lifecycle events. Has no effect if an identical listener is already registered.Note: listeners should be removed when no longer necessary. If not, they will be removed when the IServiceLocator used to acquire this service is disposed.
- Specified by:
addPageListener
in interfaceIPageService
- Parameters:
listener
- a page listener- See Also:
-
addPerspectiveListener
Description copied from interface:IPageService
Adds the given listener for a page's perspective lifecycle events. Has no effect if an identical listener is already registered.Note: listeners should be removed when no longer necessary. If not, they will be removed when the IServiceLocator used to acquire this service is disposed.
- Specified by:
addPerspectiveListener
in interfaceIPageService
- Parameters:
listener
- a perspective listener- See Also:
-
getActivePage
Description copied from interface:IPageService
Returns the active page.- Specified by:
getActivePage
in interfaceIPageService
- Returns:
- the active page, or
null
if no page is currently active
-
removePageListener
Description copied from interface:IPageService
Removes the given page listener. Has no effect if an identical listener is not registered.- Specified by:
removePageListener
in interfaceIPageService
- Parameters:
listener
- a page listener
-
removePerspectiveListener
Description copied from interface:IPageService
Removes the given page's perspective listener. Has no effect if an identical listener is not registered.- Specified by:
removePerspectiveListener
in interfaceIPageService
- Parameters:
listener
- a perspective listener
-
dispose
public void dispose()Description copied from interface:IDisposable
Disposes of this service. All resources must be freed. All listeners must be detached. Dispose will only be called once during the life cycle of a service.- Specified by:
dispose
in interfaceIDisposable
-