N - the native widgetpublic abstract class BaseMenuItemRenderer<N> extends BaseItemRenderer<org.eclipse.e4.ui.model.application.ui.menu.MMenuItem,WMenuItem<N>>
MMenuItemVISIBLE_WHEN_RESULTATTRIBUTE_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, generateParameterizedCommandactivate, 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, syncUIModificationsprotected void initWidget(org.eclipse.e4.ui.model.application.ui.menu.MMenuItem element,
WMenuItem<N> widget)
BaseRendererinitWidget 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)
BaseRendererinitRenderingContext 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)
BaseRendererdoProcessContent 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)
ElementRendererparentElement - 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)
ElementRenderercontainer - the element containerchangedObj - the element to hidepublic void checkEnablement(org.eclipse.e4.ui.model.application.ui.menu.MMenuItem menuElement)
BaseItemRendererMight be called on ANY-Thread
checkEnablement in class BaseItemRenderer<org.eclipse.e4.ui.model.application.ui.menu.MMenuItem,WMenuItem<N>>menuElement - the model element