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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
bindWidget
(MUIElement me, Object widget) protected int
calcIndex
(MUIElement element) protected int
calcVisibleIndex
(MUIElement element) Calculates the index of the element in terms of the other rendered elements.void
childRendered
(MElementContainer<MUIElement> parentElement, MUIElement element) void
disposeWidget
(MUIElement element) void
forceFocus
(MUIElement element) Force the UI focus into the element if possible.protected Image
getImageFromURI
(String iconURI) protected static MUIElement
getModelElement
(Control ctrl) protected Widget
getParentWidget
(MUIElement element) getToolTip
(MUILabel element) void
protected boolean
void
init
(IEclipseContext context) void
processContents
(MElementContainer<MUIElement> container) protected void
reapplyStyles
(Widget widget) protected boolean
requiresFocus
(MPart element) Check if activatingelement
requires that the part set the focus.void
setCSSInfo
(MUIElement me, Object widget) void
styleElement
(MUIElement element, boolean active) static Object
Methods 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:
processContents
in classorg.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer
-
styleElement
-
setCSSInfo
-
reapplyStyles
-
bindWidget
- Specified by:
bindWidget
in classorg.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer
-
unbindWidget
-
getParentWidget
- Specified by:
getParentWidget
in classorg.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer
-
disposeWidget
- Specified by:
disposeWidget
in classorg.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer
-
hookControllerLogic
- Specified by:
hookControllerLogic
in classorg.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer
-
getToolTip
-
getImageFromURI
-
getImage
- Specified by:
getImage
in 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:
childRendered
in classorg.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer
-
init
- Overrides:
init
in classorg.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer
-
requiresFocus
Description copied from class:org.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer
Check if activatingelement
requires that the part set the focus.- Specified by:
requiresFocus
in 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.AbstractPartRenderer
Force 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:
forceFocus
in classorg.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer
-
imageChanged
protected boolean imageChanged()
-