M - the model typeW - the native widget typepublic abstract class BaseItemRenderer<M extends org.eclipse.e4.ui.model.application.ui.MUIElement,W extends WWidget<M>> extends BaseRenderer<M,W>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VISIBLE_WHEN_RESULT
Key used to store the visible when result
|
ATTRIBUTE_localizedLabel, ATTRIBUTE_localizedTooltip, CALCULATED_VISIBILITY, CONTEXT_DOM_ELEMENT, CURRENT_VISIBLE_WHEN| Constructor and Description |
|---|
BaseItemRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canExecute(M item,
org.eclipse.e4.core.contexts.IEclipseContext context)
Check if the associated can be executed
|
abstract void |
checkEnablement(M element)
Check if the element is enabled
Might be called on ANY-Thread
|
protected void |
executeAction(M item,
org.eclipse.e4.core.contexts.IEclipseContext context)
Execute the associated code
|
protected @Nullable org.eclipse.core.commands.ParameterizedCommand |
generateParameterizedCommand(org.eclipse.e4.ui.model.application.ui.menu.MHandledItem item,
org.eclipse.e4.core.contexts.IEclipseContext lclContext)
Generate a parameterized command for the given
MHandledItem |
activate, bindWidget, checkVisibleWhen, createWidget, destroyWidget, doProcessContent, engineCreateWidget, engineCreateWidget, focus, getContextForParent, getLogger, getModelContext, getPresentationEngine, getRenderedIndex, getRenderingContext, getVisibleWhen, getWidget, getWidgetClass, inContentProcessing, inContextModification, initContext, initRenderingContext, initWidget, inUIModification, isChildAndRenderedVisible, postProcess, preDestroy, processContent, registerEventListener, setupRenderingContext, syncUIModificationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchildRendered, hideChildpublic static final java.lang.String VISIBLE_WHEN_RESULT
protected @Nullable org.eclipse.core.commands.ParameterizedCommand generateParameterizedCommand(org.eclipse.e4.ui.model.application.ui.menu.MHandledItem item,
org.eclipse.e4.core.contexts.IEclipseContext lclContext)
MHandledItemitem - the itemlclContext - the local contextnullprotected boolean canExecute(M item, org.eclipse.e4.core.contexts.IEclipseContext context)
item - the itemcontext - the contexttrue if can be executedprotected void executeAction(M item, org.eclipse.e4.core.contexts.IEclipseContext context)
item - the itemcontext - the execution contextpublic abstract void checkEnablement(M element)
Might be called on ANY-Thread
element - the model element