Mercurial > projects > dwt-addons
diff dwtx/jface/viewers/TableLayout.d @ 70:46a6e0e6ccd4
Merge with d-fied sources of 3.4M7
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 22 May 2008 01:36:46 +0200 |
parents | 7943b8e4206d |
children | 4878bef4a38e |
line wrap: on
line diff
--- a/dwtx/jface/viewers/TableLayout.d Mon May 19 13:41:06 2008 +0200 +++ b/dwtx/jface/viewers/TableLayout.d Thu May 22 01:36:46 2008 +0200 @@ -7,6 +7,7 @@ * * Contributors: * IBM Corporation - initial API and implementation + * Florian Priester - bug 106059 * Port to the D programming language: * Frank Benoit <benoit@tionex.de> *******************************************************************************/ @@ -48,12 +49,16 @@ * * @since 3.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$ + private static int COLUMN_TRIM; + + static { + if ("win32".equals(DWT.getPlatform())) { //$NON-NLS-1$ + COLUMN_TRIM = 4; + } else if ("carbon".equals(DWT.getPlatform())) { //$NON-NLS-1$ + COLUMN_TRIM = 24; + } else { + COLUMN_TRIM = 3; } - return COLUMN_TRIM_; } /**