Mercurial > projects > dwt-addons
comparison dwtx/jface/viewers/TableLayout.d @ 68:7943b8e4206d
Fix cyclic dependency
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 16 May 2008 23:44:34 +0200 |
parents | ea8ff534f622 |
children | 46a6e0e6ccd4 |
comparison
equal
deleted
inserted
replaced
67:51a6f1a06071 | 68:7943b8e4206d |
---|---|
46 * To ensure there are N pixels available for the content of the column, | 46 * To ensure there are N pixels available for the content of the column, |
47 * assign N+COLUMN_TRIM for the column width. | 47 * assign N+COLUMN_TRIM for the column width. |
48 * | 48 * |
49 * @since 3.1 | 49 * @since 3.1 |
50 */ | 50 */ |
51 private static const int COLUMN_TRIM; | 51 private static int COLUMN_TRIM_ = -1; |
52 static this(){ | 52 private static int COLUMN_TRIM(){ |
53 COLUMN_TRIM = "carbon".equals(DWT.getPlatform()) ? 24 : 3; //$NON-NLS-1$ | 53 if( COLUMN_TRIM_ is -1 ){ |
54 COLUMN_TRIM_ = "carbon".equals(DWT.getPlatform()) ? 24 : 3; //$NON-NLS-1$ | |
55 } | |
56 return COLUMN_TRIM_; | |
54 } | 57 } |
55 | 58 |
56 /** | 59 /** |
57 * The list of column layout data (element type: | 60 * The list of column layout data (element type: |
58 * <code>ColumnLayoutData</code>). | 61 * <code>ColumnLayoutData</code>). |