N
- the native widget typepublic abstract class BaseToolItemRenderer<N> extends BaseItemRenderer<org.eclipse.e4.ui.model.application.ui.menu.MToolItem,WToolItem<N>>
MToolItem
VISIBLE_WHEN_RESULT
ATTRIBUTE_localizedLabel, ATTRIBUTE_localizedTooltip, CALCULATED_VISIBILITY, CONTEXT_DOM_ELEMENT, CURRENT_VISIBLE_WHEN
Constructor and Description |
---|
BaseToolItemRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
checkEnablement(org.eclipse.e4.ui.model.application.ui.menu.MToolItem toolbarElement)
Check if the element is enabled
Might be called on ANY-Thread
|
void |
childRendered(org.eclipse.e4.ui.model.application.ui.menu.MToolItem parentElement,
org.eclipse.e4.ui.model.application.ui.MUIElement element)
Inform the that a direct child of the parentElement has been rendered
|
void |
doProcessContent(org.eclipse.e4.ui.model.application.ui.menu.MToolItem element)
Process the content of an element
|
void |
hideChild(org.eclipse.e4.ui.model.application.ui.menu.MToolItem 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.menu.MToolItem element,
WToolItem<N> widget)
Initialize the widget
|
canExecute, executeAction, generateParameterizedCommand
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
protected void initWidget(org.eclipse.e4.ui.model.application.ui.menu.MToolItem element, WToolItem<N> widget)
BaseRenderer
initWidget
in class BaseRenderer<org.eclipse.e4.ui.model.application.ui.menu.MToolItem,WToolItem<N>>
element
- the model elementwidget
- the widgetpublic void checkEnablement(org.eclipse.e4.ui.model.application.ui.menu.MToolItem toolbarElement)
BaseItemRenderer
Might be called on ANY-Thread
checkEnablement
in class BaseItemRenderer<org.eclipse.e4.ui.model.application.ui.menu.MToolItem,WToolItem<N>>
toolbarElement
- the model elementpublic void doProcessContent(org.eclipse.e4.ui.model.application.ui.menu.MToolItem element)
BaseRenderer
doProcessContent
in class BaseRenderer<org.eclipse.e4.ui.model.application.ui.menu.MToolItem,WToolItem<N>>
element
- the elementpublic void childRendered(org.eclipse.e4.ui.model.application.ui.menu.MToolItem 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.menu.MToolItem container, org.eclipse.e4.ui.model.application.ui.MUIElement changedObj)
ElementRenderer
container
- the element containerchangedObj
- the element to hide