N
- the native widgetT
- the native toolbar widgetM
- the native menu widgetpublic abstract class BasePartRenderer<N,T,M> extends BaseRenderer<org.eclipse.e4.ui.model.application.ui.basic.MPart,WPart<N,T,M>>
MPart
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
VIEW_MENU_TAG
Tag used to mark a menu as the view menu
|
ATTRIBUTE_localizedLabel, ATTRIBUTE_localizedTooltip, CALCULATED_VISIBILITY, CONTEXT_DOM_ELEMENT, CURRENT_VISIBLE_WHEN
Constructor and Description |
---|
BasePartRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
childRendered(org.eclipse.e4.ui.model.application.ui.basic.MPart parentElement,
org.eclipse.e4.ui.model.application.ui.MUIElement element)
Inform the that a direct child of the parentElement has been rendered
|
void |
doProcessContent(@NonNull org.eclipse.e4.ui.model.application.ui.basic.MPart element)
Process the content of an element
|
void |
hideChild(org.eclipse.e4.ui.model.application.ui.basic.MPart container,
org.eclipse.e4.ui.model.application.ui.MUIElement changedObj)
Hide the child of the element
|
protected void |
initWidget(org.eclipse.e4.ui.model.application.ui.basic.MPart element,
WPart<N,T,M> widget)
Initialize the widget
|
protected abstract boolean |
requiresFocus(@NonNull WPart<N,T,M> widget)
Check if the activated part needs focus called
|
activate, bindWidget, checkVisibleWhen, createWidget, destroyWidget, engineCreateWidget, engineCreateWidget, focus, getContextForParent, getLogger, getModelContext, getPresentationEngine, getRenderedIndex, getRenderingContext, getVisibleWhen, getWidget, getWidgetClass, inContentProcessing, inContextModification, initContext, initRenderingContext, inUIModification, isChildAndRenderedVisible, postProcess, preDestroy, processContent, registerEventListener, setupRenderingContext, syncUIModifications
public static final java.lang.String VIEW_MENU_TAG
protected void initWidget(org.eclipse.e4.ui.model.application.ui.basic.MPart element, WPart<N,T,M> widget)
BaseRenderer
initWidget
in class BaseRenderer<org.eclipse.e4.ui.model.application.ui.basic.MPart,WPart<N,T,M>>
element
- the model elementwidget
- the widgetprotected abstract boolean requiresFocus(@NonNull WPart<N,T,M> widget)
widget
- the widgettrue
if activation should call Focus
public void doProcessContent(@NonNull org.eclipse.e4.ui.model.application.ui.basic.MPart element)
BaseRenderer
doProcessContent
in class BaseRenderer<org.eclipse.e4.ui.model.application.ui.basic.MPart,WPart<N,T,M>>
element
- the elementpublic void childRendered(org.eclipse.e4.ui.model.application.ui.basic.MPart parentElement, org.eclipse.e4.ui.model.application.ui.MUIElement element)
ElementRenderer
parentElement
- the parentelement
- the child renderedpublic void hideChild(org.eclipse.e4.ui.model.application.ui.basic.MPart container, org.eclipse.e4.ui.model.application.ui.MUIElement changedObj)
ElementRenderer
container
- the element containerchangedObj
- the element to hide