Class ShowEventsSectionContribution

  • All Implemented Interfaces:
    org.eclipse.handly.ui.outline.IOutlineContribution

    public class ShowEventsSectionContribution
    extends org.eclipse.handly.ui.outline.OutlineContribution
    Special OutlineContribution for showing "Events Section" in outline page
    • Constructor Detail

      • ShowEventsSectionContribution

        public ShowEventsSectionContribution​(org.eclipse.handly.ui.preference.IBooleanPreference showEventsSectionPreferences,
                                             IContentProvider defaultContentProvider,
                                             IContentProvider contentProvider)
        Constructor
        Parameters:
        showEventsSectionPreferences - actual preferences for this contribution, can't be null
        defaultContentProvider - default content provider for outline tree, can't be null
        contentProvider - custom content provider with logic for hiding Events Section, can't be null
    • Method Detail

      • init

        public void init​(org.eclipse.handly.ui.outline.ICommonOutlinePage outlinePage)
        Specified by:
        init in interface org.eclipse.handly.ui.outline.IOutlineContribution
        Overrides:
        init in class org.eclipse.handly.ui.outline.OutlineContribution
      • dispose

        public void dispose()
        Specified by:
        dispose in interface org.eclipse.handly.ui.outline.IOutlineContribution
        Overrides:
        dispose in class org.eclipse.handly.ui.outline.OutlineContribution
      • getPreference

        protected org.eclipse.handly.ui.preference.IBooleanPreference getPreference()
        Gets actual IBooleanPreference
        Returns:
        actual IBooleanPreference, never null
      • getDefaultContentProvider

        protected IContentProvider getDefaultContentProvider()
        Gets default content provider for outline tree
        Returns:
        default content provider for outline tree, never null