N
- the native widgetpublic abstract class BaseMenuItemRenderer<N> extends BaseItemRenderer<org.eclipse.e4.ui.model.application.ui.menu.MMenuItem,WMenuItem<N>>
MMenuItem
VISIBLE_WHEN_RESULT
ATTRIBUTE_localizedLabel, ATTRIBUTE_localizedTooltip, CALCULATED_VISIBILITY, CONTEXT_DOM_ELEMENT, CURRENT_VISIBLE_WHEN
Constructor and Description |
---|
BaseMenuItemRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
checkEnablement(org.eclipse.e4.ui.model.application.ui.menu.MMenuItem menuElement)
Check if the element is enabled
Might be called on ANY-Thread
|
void |
childRendered(org.eclipse.e4.ui.model.application.ui.menu.MMenuItem 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.MMenuItem element)
Process the content of an element
|
void |
hideChild(org.eclipse.e4.ui.model.application.ui.menu.MMenuItem container,
org.eclipse.e4.ui.model.application.ui.MUIElement changedObj)
Hide the child of the element
|
protected void |
initRenderingContext(org.eclipse.e4.ui.model.application.ui.menu.MMenuItem element,
org.eclipse.e4.core.contexts.IEclipseContext context)
Initialize the rendering context
|
protected void |
initWidget(org.eclipse.e4.ui.model.application.ui.menu.MMenuItem element,
WMenuItem<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, inUIModification, isChildAndRenderedVisible, postProcess, preDestroy, processContent, registerEventListener, setupRenderingContext, syncUIModifications
protected void initWidget(org.eclipse.e4.ui.model.application.ui.menu.MMenuItem element, WMenuItem<N> widget)
BaseRenderer
initWidget
in class BaseRenderer<org.eclipse.e4.ui.model.application.ui.menu.MMenuItem,WMenuItem<N>>
element
- the model elementwidget
- the widgetprotected void initRenderingContext(org.eclipse.e4.ui.model.application.ui.menu.MMenuItem element, org.eclipse.e4.core.contexts.IEclipseContext context)
BaseRenderer
initRenderingContext
in class BaseRenderer<org.eclipse.e4.ui.model.application.ui.menu.MMenuItem,WMenuItem<N>>
element
- the elementcontext
- the contextpublic void doProcessContent(org.eclipse.e4.ui.model.application.ui.menu.MMenuItem element)
BaseRenderer
doProcessContent
in class BaseRenderer<org.eclipse.e4.ui.model.application.ui.menu.MMenuItem,WMenuItem<N>>
element
- the elementpublic void childRendered(org.eclipse.e4.ui.model.application.ui.menu.MMenuItem 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.MMenuItem container, org.eclipse.e4.ui.model.application.ui.MUIElement changedObj)
ElementRenderer
container
- the element containerchangedObj
- the element to hidepublic void checkEnablement(org.eclipse.e4.ui.model.application.ui.menu.MMenuItem menuElement)
BaseItemRenderer
Might be called on ANY-Thread
checkEnablement
in class BaseItemRenderer<org.eclipse.e4.ui.model.application.ui.menu.MMenuItem,WMenuItem<N>>
menuElement
- the model element