Interface IWorkbenchSite

    • Method Detail

      • getPage

        IWorkbenchPage getPage()
        Returns the page containing this workbench site.
        Returns:
        the page containing this workbench site
      • getSelectionProvider

        ISelectionProvider getSelectionProvider()
        Returns the selection provider for this workbench site.
        Returns:
        the selection provider, or null if none
      • getShell

        Shell getShell()
        Returns the shell for this workbench site. Not intended to be called from outside the UI thread. Clients should call IWorkbench.getDisplay() to gain access to the display rather than calling getShell().getDisplay().

        For compatibility, this method will not throw an exception if called from outside the UI thread, but the returned Shell may be wrong.

        Specified by:
        getShell in interface IShellProvider
        Returns:
        the shell for this workbench site
      • getWorkbenchWindow

        IWorkbenchWindow getWorkbenchWindow()
        Returns the workbench window containing this workbench site.
        Returns:
        the workbench window containing this workbench site
      • setSelectionProvider

        void setSelectionProvider​(ISelectionProvider provider)
        Sets the selection provider for this workbench site.
        Parameters:
        provider - the selection provider, or null to clear it