Mercurial > projects > dwt-addons
diff dwtx/jface/text/source/AnnotationPainter.d @ 159:7926b636c282
...
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 27 Aug 2008 01:57:58 +0200 |
parents | 25f1f92fa3df |
children | 1a5b8f8129df |
line wrap: on
line diff
--- a/dwtx/jface/text/source/AnnotationPainter.d Tue Aug 26 02:46:34 2008 +0200 +++ b/dwtx/jface/text/source/AnnotationPainter.d Wed Aug 27 01:57:58 2008 +0200 @@ -348,7 +348,16 @@ * Tells whether this class is in debug mode. * @since 3.0 */ - private static bool DEBUG= "true".equalsIgnoreCase(Platform.getDebugOption("dwtx.jface.text/debug/AnnotationPainter")); //$NON-NLS-1$//$NON-NLS-2$ + private static bool DEBUG_; + private static bool DEBUG_init = false; + private static bool DEBUG(){ + if( !DEBUG_init ){ + DEBUG_init = true; + DEBUG_ = "true".equalsIgnoreCase(Platform.getDebugOption("dwtx.jface.text/debug/AnnotationPainter")); //$NON-NLS-1$//$NON-NLS-2$ + } + return DEBUG_; + } + /** * The squiggly painter strategy. * @since 3.0