diff dwtx/jface/text/templates/persistence/TemplateStore.d @ 170:284c2e810329

compile of JFace.Text is ok now
author Frank Benoit <benoit@tionex.de>
date Tue, 09 Sep 2008 18:46:06 +0200
parents 1a5b8f8129df
children
line wrap: on
line diff
--- a/dwtx/jface/text/templates/persistence/TemplateStore.d	Tue Sep 09 17:44:33 2008 +0200
+++ b/dwtx/jface/text/templates/persistence/TemplateStore.d	Tue Sep 09 18:46:06 2008 +0200
@@ -18,6 +18,8 @@
 
 import dwt.dwthelper.utils;
 import dwtx.dwtxhelper.Collection;
+import dwtx.dwtxhelper.StringWriter;
+import dwtx.dwtxhelper.StringReader;
 
 import dwtx.core.runtime.Assert;
 import dwtx.jface.preference.IPersistentPreferenceStore;
@@ -37,7 +39,7 @@
  */
 public class TemplateStore {
     /** The stored templates. */
-    private const List fTemplates= new ArrayList();
+    private const List fTemplates;
     /** The preference store. */
     private IPreferenceStore fPreferenceStore;
     /**
@@ -74,7 +76,9 @@
      *        templates
      */
     public this(IPreferenceStore store, String key) {
-        Assert.isNotNull(store);
+        fTemplates= new ArrayList();
+
+        Assert.isNotNull(cast(Object)store);
         Assert.isNotNull(key);
         fPreferenceStore= store;
         fKey= key;
@@ -159,7 +163,7 @@
      * @since 3.2
      */
     protected void handleException(IOException x) {
-        x.printStackTrace();
+        ExceptionPrintStackTrace(x);
     }
 
     /**
@@ -287,7 +291,7 @@
             load();
         } catch (IOException x) {
             // can't log from jface-text
-            x.printStackTrace();
+            ExceptionPrintStackTrace(x);
         }
     }