Mercurial > projects > dwt-addons
changeset 68:7943b8e4206d
Fix cyclic dependency
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 16 May 2008 23:44:34 +0200 |
parents | 51a6f1a06071 |
children | 07b9d96fd764 |
files | dwtx/jface/viewers/TableLayout.d |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/dwtx/jface/viewers/TableLayout.d Wed Apr 16 20:48:19 2008 +0200 +++ b/dwtx/jface/viewers/TableLayout.d Fri May 16 23:44:34 2008 +0200 @@ -48,9 +48,12 @@ * * @since 3.1 */ - private static const int COLUMN_TRIM; - static this(){ - COLUMN_TRIM = "carbon".equals(DWT.getPlatform()) ? 24 : 3; //$NON-NLS-1$ + private static int COLUMN_TRIM_ = -1; + private static int COLUMN_TRIM(){ + if( COLUMN_TRIM_ is -1 ){ + COLUMN_TRIM_ = "carbon".equals(DWT.getPlatform()) ? 24 : 3; //$NON-NLS-1$ + } + return COLUMN_TRIM_; } /**