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.IPageChangedListenerIContentOutlinePageimplementation that provides actual outline from selecting page ofmulti pageeditors.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)Constructor ofMultiPageDelegatingContentOutlinePage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateControl(org.eclipse.swt.widgets.Composite parent)voiddispose()protected org.eclipse.jface.action.IContributionManagergetContributionManager()Returns the current page contribution manager.org.eclipse.swt.widgets.ControlgetControl()protected org.eclipse.ui.views.contentoutline.IContentOutlinePagegetEmptyPage()Returns 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, setSelection
-
-
-
-
Constructor Detail
-
MultiPageDelegatingContentOutlinePage
public MultiPageDelegatingContentOutlinePage(org.eclipse.ui.part.MultiPageEditorPart editor)
Constructor ofMultiPageDelegatingContentOutlinePage.- Parameters:
editor- the multi-page editor part, cannot benull
-
-
Method Detail
-
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
-
-