Class SWTPartRenderer
java.lang.Object
org.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer
org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer
- Direct Known Subclasses:
AreaRenderer,ContributedPartRenderer,ElementReferenceRenderer,LazyStackRenderer,MenuManagerRenderer,PerspectiveRenderer,SashRenderer,SeparatorRenderer,ToolBarManagerRenderer,ToolControlRenderer,TrimBarRenderer,WBWRenderer
public abstract class SWTPartRenderer
extends org.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer
-
Field Summary
Fields inherited from class org.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer
context, modelService, OWNING_ME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbindWidget(MUIElement me, Object widget) protected intcalcIndex(MUIElement element) protected intcalcVisibleIndex(MUIElement element) Calculates the index of the element in terms of the other rendered elements.voidchildRendered(MElementContainer<MUIElement> parentElement, MUIElement element) voiddisposeWidget(MUIElement element) voidforceFocus(MUIElement element) Force the UI focus into the element if possible.protected ImagegetImageFromURI(String iconURI) protected static MUIElementgetModelElement(Control ctrl) protected WidgetgetParentWidget(MUIElement element) getToolTip(MUILabel element) voidprotected booleanvoidinit(IEclipseContext context) voidprocessContents(MElementContainer<MUIElement> container) protected voidreapplyStyles(Widget widget) protected booleanrequiresFocus(MPart element) Check if activatingelementrequires that the part set the focus.voidsetCSSInfo(MUIElement me, Object widget) voidstyleElement(MUIElement element, boolean active) static ObjectMethods inherited from class org.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer
activate, createWidget, getContext, getContextForParent, getStyleOverride, getUIContainer, hideChild, postProcess, removeGui
-
Constructor Details
-
SWTPartRenderer
public SWTPartRenderer()
-
-
Method Details
-
processContents
- Specified by:
processContentsin classorg.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer
-
styleElement
-
setCSSInfo
-
reapplyStyles
-
bindWidget
- Specified by:
bindWidgetin classorg.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer
-
unbindWidget
-
getParentWidget
- Specified by:
getParentWidgetin classorg.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer
-
disposeWidget
- Specified by:
disposeWidgetin classorg.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer
-
hookControllerLogic
- Specified by:
hookControllerLogicin classorg.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer
-
getToolTip
-
getImageFromURI
-
getImage
- Specified by:
getImagein classorg.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer
-
calcVisibleIndex
Calculates the index of the element in terms of the other rendered elements. This is useful when 'inserting' elements in the middle of existing, rendered parents.- Parameters:
element- The element to get the index for- Returns:
- The visible index or -1 if the element is not a child of the parent
-
calcIndex
-
childRendered
- Specified by:
childRenderedin classorg.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer
-
init
- Overrides:
initin classorg.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer
-
requiresFocus
Description copied from class:org.eclipse.e4.ui.internal.workbench.swt.AbstractPartRendererCheck if activatingelementrequires that the part set the focus.- Specified by:
requiresFocusin classorg.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer- Returns:
- true if the part requires focus
-
getModelElement
-
forceFocus
Description copied from class:org.eclipse.e4.ui.internal.workbench.swt.AbstractPartRendererForce the UI focus into the element if possible. This method should not be called directly, it will be called by the IPresentationEngine#focusGui method if the normal process used to set the focus cannot be performed.- Overrides:
forceFocusin classorg.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer
-
imageChanged
protected boolean imageChanged()
-