Mercurial > projects > dwt-addons
diff dwtx/jface/action/StatusLineContributionItem.d @ 72:5df4896124c7
JFace and its examples do compile
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 22 May 2008 17:56:17 +0200 |
parents | 4878bef4a38e |
children |
line wrap: on
line diff
--- a/dwtx/jface/action/StatusLineContributionItem.d Thu May 22 04:03:58 2008 +0200 +++ b/dwtx/jface/action/StatusLineContributionItem.d Thu May 22 17:56:17 2008 +0200 @@ -24,6 +24,10 @@ import dwtx.core.runtime.Assert; import dwtx.jface.util.Util; +import dwtx.jface.action.ContributionItem; +import dwtx.jface.action.StatusLineLayoutData; +import dwtx.jface.action.IContributionManager; + import dwt.dwthelper.utils; /** @@ -49,7 +53,7 @@ */ private Composite statusLine = null; - private String text = Util.ZERO_LENGTH_STRING; + private String text; private int widthHint = -1; @@ -77,6 +81,7 @@ * the number of characters to display */ public this(String id, int charWidth) { + text = Util.ZERO_LENGTH_STRING; super(id); this.charWidth = charWidth; setVisible(false); // no text to start with