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 ofmulti 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)
Constructor ofMultiPageDelegatingContentOutlinePage
.
-
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
-
-
-
-
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:
createControl
in interfaceorg.eclipse.ui.part.IPage
- Overrides:
createControl
in classorg.eclipse.ui.views.contentoutline.ContentOutlinePage
-
getControl
public org.eclipse.swt.widgets.Control getControl()
- Specified by:
getControl
in interfaceorg.eclipse.ui.part.IPage
- Overrides:
getControl
in classorg.eclipse.ui.views.contentoutline.ContentOutlinePage
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceorg.eclipse.ui.part.IPage
- Overrides:
dispose
in classorg.eclipse.ui.part.Page
-
setFocus
public void setFocus()
- Specified by:
setFocus
in interfaceorg.eclipse.ui.part.IPage
- Overrides:
setFocus
in classorg.eclipse.ui.views.contentoutline.ContentOutlinePage
-
pageChanged
public void pageChanged(org.eclipse.jface.dialogs.PageChangedEvent event)
- Specified by:
pageChanged
in 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 ornull
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
-
-