N
- the native widget typepublic abstract class BaseWindowRenderer<N> extends BaseRenderer<org.eclipse.e4.ui.model.application.ui.basic.MWindow,WWindow<N>>
MWindow
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY_FULL_SCREEN
persisted map key to put window to full screen
|
static java.lang.String |
TAG_SHELLMAXIMIZED
Maximize the shell - provided for SWT-Compat
|
ATTRIBUTE_localizedLabel, ATTRIBUTE_localizedTooltip, CALCULATED_VISIBILITY, CONTEXT_DOM_ELEMENT, CURRENT_VISIBLE_WHEN
Constructor and Description |
---|
BaseWindowRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
childRendered(org.eclipse.e4.ui.model.application.ui.basic.MWindow parentElement,
org.eclipse.e4.ui.model.application.ui.MUIElement element)
Inform the that a direct child of the parentElement has been rendered
|
void |
destroyWidget(org.eclipse.e4.ui.model.application.ui.basic.MWindow element)
Destroy the widget associated with the element
|
void |
doProcessContent(org.eclipse.e4.ui.model.application.ui.basic.MWindow element)
Process the content of an element
|
void |
hideChild(org.eclipse.e4.ui.model.application.ui.basic.MWindow container,
org.eclipse.e4.ui.model.application.ui.MUIElement changedObj)
Hide the child of the element
|
protected void |
initWidget(@NonNull org.eclipse.e4.ui.model.application.ui.basic.MWindow element,
@NonNull WWindow<N> widget)
Initialize the widget
|
void |
postProcess(org.eclipse.e4.ui.model.application.ui.basic.MWindow element)
Post process the element
|
protected abstract @NonNull java.util.List<org.eclipse.e4.ui.workbench.modeling.ISaveHandler.Save> |
promptToSave(@NonNull org.eclipse.e4.ui.model.application.ui.basic.MWindow element,
@NonNull java.util.Collection<org.eclipse.e4.ui.model.application.ui.basic.MPart> dirtyParts,
@NonNull WWindow<N> widget)
Show a prompt to inform the user about dirty parts
|
protected abstract org.eclipse.e4.ui.workbench.modeling.ISaveHandler.Save |
promptToSave(@NonNull org.eclipse.e4.ui.model.application.ui.basic.MWindow element,
@NonNull org.eclipse.e4.ui.model.application.ui.basic.MPart dirtyPart,
@NonNull WWindow<N> widget)
Show a prompt to inform the user that one part is dirty
|
activate, bindWidget, checkVisibleWhen, createWidget, engineCreateWidget, engineCreateWidget, focus, getContextForParent, getLogger, getModelContext, getPresentationEngine, getRenderedIndex, getRenderingContext, getVisibleWhen, getWidget, getWidgetClass, inContentProcessing, inContextModification, initContext, initRenderingContext, inUIModification, isChildAndRenderedVisible, preDestroy, processContent, registerEventListener, setupRenderingContext, syncUIModifications
public static final java.lang.String KEY_FULL_SCREEN
public static final java.lang.String TAG_SHELLMAXIMIZED
protected void initWidget(@NonNull org.eclipse.e4.ui.model.application.ui.basic.MWindow element, @NonNull WWindow<N> widget)
BaseRenderer
initWidget
in class BaseRenderer<org.eclipse.e4.ui.model.application.ui.basic.MWindow,WWindow<N>>
element
- the model elementwidget
- the widgetprotected abstract @NonNull java.util.List<org.eclipse.e4.ui.workbench.modeling.ISaveHandler.Save> promptToSave(@NonNull org.eclipse.e4.ui.model.application.ui.basic.MWindow element, @NonNull java.util.Collection<org.eclipse.e4.ui.model.application.ui.basic.MPart> dirtyParts, @NonNull WWindow<N> widget)
element
- the parentdirtyParts
- the dirty partswidget
- the window widget to use for parentingprotected abstract org.eclipse.e4.ui.workbench.modeling.ISaveHandler.Save promptToSave(@NonNull org.eclipse.e4.ui.model.application.ui.basic.MWindow element, @NonNull org.eclipse.e4.ui.model.application.ui.basic.MPart dirtyPart, @NonNull WWindow<N> widget)
element
- the parentdirtyPart
- the dirty partwidget
- the window widget to use for parentingpublic void doProcessContent(org.eclipse.e4.ui.model.application.ui.basic.MWindow element)
BaseRenderer
doProcessContent
in class BaseRenderer<org.eclipse.e4.ui.model.application.ui.basic.MWindow,WWindow<N>>
element
- the elementpublic void postProcess(org.eclipse.e4.ui.model.application.ui.basic.MWindow element)
ElementRenderer
postProcess
in interface ElementRenderer<org.eclipse.e4.ui.model.application.ui.basic.MWindow,WWindow<N>>
postProcess
in class BaseRenderer<org.eclipse.e4.ui.model.application.ui.basic.MWindow,WWindow<N>>
element
- the elementpublic void childRendered(org.eclipse.e4.ui.model.application.ui.basic.MWindow parentElement, org.eclipse.e4.ui.model.application.ui.MUIElement element)
ElementRenderer
parentElement
- the parentelement
- the child renderedpublic void hideChild(org.eclipse.e4.ui.model.application.ui.basic.MWindow container, org.eclipse.e4.ui.model.application.ui.MUIElement changedObj)
ElementRenderer
container
- the element containerchangedObj
- the element to hidepublic void destroyWidget(org.eclipse.e4.ui.model.application.ui.basic.MWindow element)
ElementRenderer
destroyWidget
in interface ElementRenderer<org.eclipse.e4.ui.model.application.ui.basic.MWindow,WWindow<N>>
destroyWidget
in class BaseRenderer<org.eclipse.e4.ui.model.application.ui.basic.MWindow,WWindow<N>>
element
- the element