Class MultiPageDelegatingContentOutlinePage

  • All Implemented Interfaces:
    org.eclipse.jface.dialogs.IPageChangedListener, ISelectionChangedListener, ISelectionProvider, org.eclipse.ui.part.IPage, org.eclipse.ui.part.IPageBookViewPage, org.eclipse.ui.views.contentoutline.IContentOutlinePage

    public class MultiPageDelegatingContentOutlinePage
    extends org.eclipse.ui.views.contentoutline.ContentOutlinePage
    implements org.eclipse.jface.dialogs.IPageChangedListener
    IContentOutlinePage implementation that provides actual outline from selecting page of multi page editors.

    Page will delegate actual content contribution to selecting editor pages through common getAdapter(IContentOutlinePage.class) invocation.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void createControl​(org.eclipse.swt.widgets.Composite parent)  
      void dispose()  
      protected org.eclipse.jface.action.IContributionManager getContributionManager()
      Returns the current page contribution manager.
      org.eclipse.swt.widgets.Control getControl()  
      protected org.eclipse.ui.views.contentoutline.IContentOutlinePage getEmptyPage()
      Returns the empty page, that can be used as 'no-content' indicator for outline.
      void pageChanged​(org.eclipse.jface.dialogs.PageChangedEvent event)  
      void setFocus()  
      protected void setPageActive​(org.eclipse.ui.views.contentoutline.IContentOutlinePage delegate)
      Set the provided content outline page as active or set empty page as active.
      • Methods inherited from class org.eclipse.ui.views.contentoutline.ContentOutlinePage

        addSelectionChangedListener, fireSelectionChanged, getSelection, getTreeStyle, getTreeViewer, init, removeSelectionChangedListener, selectionChanged, setSelection
      • Methods inherited from class org.eclipse.ui.part.Page

        getSite, makeContributions, setActionBars
      • Methods inherited from interface org.eclipse.ui.part.IPage

        setActionBars
    • Constructor Detail

      • MultiPageDelegatingContentOutlinePage

        public MultiPageDelegatingContentOutlinePage​(org.eclipse.ui.part.MultiPageEditorPart editor)
        Parameters:
        editor - the multi-page editor part, cannot be null
    • Method Detail

      • createControl

        public void createControl​(org.eclipse.swt.widgets.Composite parent)
        Specified by:
        createControl in interface org.eclipse.ui.part.IPage
        Overrides:
        createControl in class org.eclipse.ui.views.contentoutline.ContentOutlinePage
      • getControl

        public org.eclipse.swt.widgets.Control getControl()
        Specified by:
        getControl in interface org.eclipse.ui.part.IPage
        Overrides:
        getControl in class org.eclipse.ui.views.contentoutline.ContentOutlinePage
      • dispose

        public void dispose()
        Specified by:
        dispose in interface org.eclipse.ui.part.IPage
        Overrides:
        dispose in class org.eclipse.ui.part.Page
      • setFocus

        public void setFocus()
        Specified by:
        setFocus in interface org.eclipse.ui.part.IPage
        Overrides:
        setFocus in class org.eclipse.ui.views.contentoutline.ContentOutlinePage
      • pageChanged

        public void pageChanged​(org.eclipse.jface.dialogs.PageChangedEvent event)
        Specified by:
        pageChanged in interface org.eclipse.jface.dialogs.IPageChangedListener
      • setPageActive

        protected void setPageActive​(org.eclipse.ui.views.contentoutline.IContentOutlinePage delegate)
        Set the provided content outline page as active or set empty page as active.
        Parameters:
        delegate - content outline page to activate or null to set empty outline page as current
      • getContributionManager

        protected org.eclipse.jface.action.IContributionManager getContributionManager()
        Returns the current page contribution manager.
        Returns:
        the current page contribution manager or null if no page site is cunnrenlty available for outline page
      • getEmptyPage

        protected org.eclipse.ui.views.contentoutline.IContentOutlinePage getEmptyPage()
        Returns the empty page, that can be used as 'no-content' indicator for outline.
        Returns:
        the empty page, never null