diff dwtx/jface/text/formatter/ContextBasedFormattingStrategy.d @ 162:1a5b8f8129df

...
author Frank Benoit <benoit@tionex.de>
date Mon, 08 Sep 2008 00:51:37 +0200
parents 25f1f92fa3df
children
line wrap: on
line diff
--- a/dwtx/jface/text/formatter/ContextBasedFormattingStrategy.d	Wed Aug 27 14:49:30 2008 +0200
+++ b/dwtx/jface/text/formatter/ContextBasedFormattingStrategy.d	Mon Sep 08 00:51:37 2008 +0200
@@ -43,7 +43,11 @@
     private Map fCurrentPreferences= null;
 
     /** The list of preferences for initiated the formatting steps */
-    private const LinkedList fPreferences= new LinkedList();
+    private const LinkedList fPreferences;
+
+    this(){
+        fPreferences= new LinkedList();
+    }
 
     /*
      * @see dwtx.jface.text.formatter.IFormattingStrategyExtension#format()
@@ -63,7 +67,7 @@
      * @see dwtx.jface.text.formatter.IFormattingStrategyExtension#formatterStarts(dwtx.jface.text.formatter.IFormattingContext)
      */
     public void formatterStarts(IFormattingContext context) {
-        fPreferences.addLast(context.getProperty(FormattingContextProperties.CONTEXT_PREFERENCES));
+        fPreferences.addLast(context.getProperty(stringcast(FormattingContextProperties.CONTEXT_PREFERENCES)));
     }
 
     /*