Class LazyStackRenderer
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.LazyStackRenderer
- Direct Known Subclasses:
PerspectiveStackRenderer,StackRenderer
This class encapsulates the functionality necessary to manage stacks of parts
in a 'lazy loading' manner. For these stacks only the currently 'active'
child most be rendered so in this class we over ride that default
behavior for processing the stack's contents to prevent all of the contents
from being rendered, calling 'childAdded' instead. This not only saves time
and SWT resources but is necessary in an IDE world where we must not
arbitrarily cause plug-in loading.
-
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 TypeMethodDescriptionvoidchildRendered(MElementContainer<MUIElement> parentElement, MUIElement element) voidcontextDisposed(IEventBroker eventBroker) protected voidcreateTab(MElementContainer<MUIElement> me, MUIElement part) This method is necessary to allow the parent container to show affordance (i.e. tabs) for child elements -without- creating the actual partvoidhideChild(MElementContainer<MUIElement> parentElement, MUIElement child) voidinit(IEventBroker eventBroker) voidpostProcess(MUIElement element) voidprotected voidshowTab(MUIElement element) Methods inherited from class org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer
bindWidget, calcIndex, calcVisibleIndex, 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, createWidget, getContext, getContextForParent, getStyleOverride, getUIContainer, removeGui
-
Constructor Details
-
LazyStackRenderer
public LazyStackRenderer()
-
-
Method Details
-
init
-
contextDisposed
-
postProcess
- Overrides:
postProcessin classorg.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer
-
childRendered
- Overrides:
childRenderedin classSWTPartRenderer
-
hideChild
- Overrides:
hideChildin classorg.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer
-
processContents
- Overrides:
processContentsin classSWTPartRenderer
-
createTab
This method is necessary to allow the parent container to show affordance (i.e. tabs) for child elements -without- creating the actual part- Parameters:
me- The parent model elementpart- The child to show the affordance for
-
showTab
-