Mercurial > projects > dwt-addons
diff dwtx/jface/text/DefaultInformationControl.d @ 162:1a5b8f8129df
...
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 08 Sep 2008 00:51:37 +0200 |
parents | 25f1f92fa3df |
children |
line wrap: on
line diff
--- a/dwtx/jface/text/DefaultInformationControl.d Wed Aug 27 14:49:30 2008 +0200 +++ b/dwtx/jface/text/DefaultInformationControl.d Mon Sep 08 00:51:37 2008 +0200 @@ -258,7 +258,7 @@ /** The information presenter, or <code>null</code> if none. */ private const IInformationPresenter fPresenter; /** A cached text presentation */ - private const TextPresentation fPresentation= new TextPresentation(); + private const TextPresentation fPresentation; /** * Additional styles to use for the text control. @@ -275,6 +275,7 @@ * @since 3.4 */ public this(Shell parent, bool isResizeable) { + fPresentation= new TextPresentation(); super(parent, isResizeable); fAdditionalTextStyles= isResizeable ? DWT.V_SCROLL | DWT.H_SCROLL : DWT.NONE; fPresenter= new HTMLTextPresenter(!isResizeable); @@ -304,6 +305,7 @@ * @since 3.4 */ public this(Shell parent, String statusFieldText, IInformationPresenter presenter) { + fPresentation= new TextPresentation(); super(parent, statusFieldText); fAdditionalTextStyles= DWT.NONE; fPresenter= presenter; @@ -334,6 +336,7 @@ * @since 3.4 */ public this(Shell parent, ToolBarManager toolBarManager, IInformationPresenter presenter) { + fPresentation= new TextPresentation(); super(parent, toolBarManager); fAdditionalTextStyles= DWT.V_SCROLL | DWT.H_SCROLL; fPresenter= presenter; @@ -393,6 +396,7 @@ * @deprecated As of 3.4, replaced by simpler constructors */ public this(Shell parentShell, int shellStyle, int style, IInformationPresenter presenter, String statusFieldText) { + fPresentation= new TextPresentation(); super(parentShell, DWT.NO_FOCUS | DWT.ON_TOP | shellStyle, statusFieldText, null); fAdditionalTextStyles= style; fPresenter= presenter; @@ -426,6 +430,7 @@ * @deprecated As of 3.4, replaced by {@link #DefaultInformationControl(Shell, String, DefaultInformationControl.IInformationPresenter)} */ public this(Shell parent, int textStyles, IInformationPresenter presenter, String statusFieldText) { + fPresentation= new TextPresentation(); super(parent, statusFieldText); fAdditionalTextStyles= textStyles; fPresenter= presenter;