Class SlavePageService

java.lang.Object
org.eclipse.ui.internal.SlavePageService
All Implemented Interfaces:
IPageService, IDisposable

public class SlavePageService extends Object implements IPageService, IDisposable
Since:
3.4
  • Constructor Details

    • SlavePageService

      public SlavePageService(IPageService parent)
  • Method Details

    • addPageListener

      public void addPageListener(IPageListener listener)
      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 interface IPageService
      Parameters:
      listener - a page listener
      See Also:
    • addPerspectiveListener

      public void addPerspectiveListener(IPerspectiveListener listener)
      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 interface IPageService
      Parameters:
      listener - a perspective listener
      See Also:
    • getActivePage

      public IWorkbenchPage getActivePage()
      Description copied from interface: IPageService
      Returns the active page.
      Specified by:
      getActivePage in interface IPageService
      Returns:
      the active page, or null if no page is currently active
    • removePageListener

      public void removePageListener(IPageListener listener)
      Description copied from interface: IPageService
      Removes the given page listener. Has no effect if an identical listener is not registered.
      Specified by:
      removePageListener in interface IPageService
      Parameters:
      listener - a page listener
    • removePerspectiveListener

      public void removePerspectiveListener(IPerspectiveListener listener)
      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 interface IPageService
      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 interface IDisposable