Class MultiPageDelegatingContentOutlinePage

java.lang.Object
org.eclipse.ui.part.Page
org.eclipse.ui.views.contentoutline.ContentOutlinePage
com._1c.g5.v8.dt.common.ui.outline.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.

  • Constructor Summary

    Constructors
    Constructor
    Description
    MultiPageDelegatingContentOutlinePage(org.eclipse.ui.part.MultiPageEditorPart editor)
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    createControl(org.eclipse.swt.widgets.Composite parent)
     
    void
     
    protected org.eclipse.jface.action.IContributionManager
    Returns the current page contribution manager.
    org.eclipse.swt.widgets.Control
     
    protected org.eclipse.ui.views.contentoutline.IContentOutlinePage
    Returns the empty page, that can be used as 'no-content' indicator for outline.
    void
    pageChanged(org.eclipse.jface.dialogs.PageChangedEvent event)
     
    void
     
    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 class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.ui.part.IPage

    setActionBars
  • Constructor Details

    • MultiPageDelegatingContentOutlinePage

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

    • 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