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
ConstructorsConstructorDescriptionMultiPageDelegatingContentOutlinePage(org.eclipse.ui.part.MultiPageEditorPart editor) Constructor ofMultiPageDelegatingContentOutlinePage. -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateControl(org.eclipse.swt.widgets.Composite parent) voiddispose()protected org.eclipse.jface.action.IContributionManagerReturns the current page contribution manager.org.eclipse.swt.widgets.Controlprotected org.eclipse.ui.views.contentoutline.IContentOutlinePageReturns the empty page, that can be used as 'no-content' indicator for outline.voidpageChanged(org.eclipse.jface.dialogs.PageChangedEvent event) voidsetFocus()protected voidsetPageActive(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, setSelectionMethods inherited from class org.eclipse.ui.part.Page
getSite, makeContributions, setActionBarsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.ui.part.IPage
setActionBars
-
Constructor Details
-
MultiPageDelegatingContentOutlinePage
public MultiPageDelegatingContentOutlinePage(org.eclipse.ui.part.MultiPageEditorPart editor) Constructor ofMultiPageDelegatingContentOutlinePage.- Parameters:
editor- the multi-page editor part, cannot benull
-
-
Method Details
-
createControl
public void createControl(org.eclipse.swt.widgets.Composite parent) - Specified by:
createControlin interfaceorg.eclipse.ui.part.IPage- Overrides:
createControlin classorg.eclipse.ui.views.contentoutline.ContentOutlinePage
-
getControl
public org.eclipse.swt.widgets.Control getControl()- Specified by:
getControlin interfaceorg.eclipse.ui.part.IPage- Overrides:
getControlin classorg.eclipse.ui.views.contentoutline.ContentOutlinePage
-
dispose
public void dispose()- Specified by:
disposein interfaceorg.eclipse.ui.part.IPage- Overrides:
disposein classorg.eclipse.ui.part.Page
-
setFocus
public void setFocus()- Specified by:
setFocusin interfaceorg.eclipse.ui.part.IPage- Overrides:
setFocusin classorg.eclipse.ui.views.contentoutline.ContentOutlinePage
-
pageChanged
public void pageChanged(org.eclipse.jface.dialogs.PageChangedEvent event) - Specified by:
pageChangedin interfaceorg.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 ornullto 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
nullif 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
-