Class MenuManagerRenderer
java.lang.Object
org.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer
org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer
org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRenderer
Create a contribute part.
-
Field Summary
FieldsFields inherited from class org.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer
context, modelService, OWNING_ME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRecord(MMenuElement item, ContributionRecord rec) voidvoidcleanUpCopy(ContributionRecord record, MMenuElement copy) voidclearModelToContribution(MMenuElement model, IContributionItem item) voidclearModelToManager(MMenu model, MenuManager manager) voidcreateWidget(MUIElement element, Object parent) getContext(MUIElement el) Return a context for this part.getContribution(MMenuElement model) getContributionRecord(MMenuElement element) Search the records for testing.getList(MMenuElement item) getManager(MMenu model) getMenuModel(MenuManager manager) voidinit()voidlinkElementToContributionRecord(MMenuElement element, ContributionRecord record) voidlinkModelToContribution(MMenuElement model, IContributionItem item) voidlinkModelToManager(MMenu model, MenuManager manager) voidprocessContents(MElementContainer<MUIElement> container) voidprocessContributions(MMenu menuModel, String elementId, boolean isMenuBar, boolean isPopup) voidreconcileManagerToModel(MenuManager menuManager, MMenu menuModel) voidremoveDynamicMenuContributions(MenuManager menuManager, MMenu menuModel) Remove all dynamic contribution items and their model for the MenuManager specified.voidremoveDynamicMenuContributions(MenuManager menuManager, MMenu menuModel, List<MMenuElement> dump) Clean dynamic menu contributions provided byMDynamicMenuContributionapplication model elementsvoidremoveRecord(MMenuElement item, ContributionRecord rec) static voidupdateVisibility(MenuManager menuManager, MMenuElement element, ExpressionContext evalContext) Methods inherited from class SWTPartRenderer
bindWidget, calcIndex, calcVisibleIndex, childRendered, disposeWidget, forceFocus, getImage, getImageFromURI, getModelElement, getParentWidget, getToolTip, hookControllerLogic, imageChanged, init, reapplyStyles, requiresFocus, setCSSInfo, styleElement, unbindWidgetMethods inherited from class org.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer
activate, getContextForParent, getStyleOverride, getUIContainer, hideChild, postProcess, removeGui
-
Field Details
-
VISIBILITY_IDENTIFIER
- See Also:
-
GROUP_MARKER
- See Also:
-
-
Constructor Details
-
MenuManagerRenderer
public MenuManagerRenderer()
-
-
Method Details
-
init
@PostConstruct public void init() -
contextDisposed
@PreDestroy public void contextDisposed() -
createWidget
- Specified by:
createWidgetin classorg.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer
-
processContents
- Overrides:
processContentsin classSWTPartRenderer
-
getMenuModel
-
getMenuElement
-
getContributionRecords
Search the records for testing. Look, but don't touch!- Returns:
- the array of active ContributionRecords.
-
getContext
Description copied from class:org.eclipse.e4.ui.internal.workbench.swt.AbstractPartRendererReturn a context for this part.- Overrides:
getContextin classorg.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer- Parameters:
el- the part to start searching from- Returns:
- the closest context, or global context if none in the hierarchy
-