diff dwt/custom/DefaultContent.d @ 254:a73bd022b5ac

Add version TANGOSVN
author Frank Benoit <benoit@tionex.de>
date Sat, 12 Jul 2008 11:56:46 +0200
parents fd9c62a2998e
children a63e2cd5485e
line wrap: on
line diff
--- a/dwt/custom/DefaultContent.d	Fri Jul 11 23:01:25 2008 +0200
+++ b/dwt/custom/DefaultContent.d	Sat Jul 12 11:56:46 2008 +0200
@@ -22,14 +22,25 @@
 import dwt.custom.StyledTextListener;
 import dwt.custom.StyledText;
 
-static import tango.io.FileConst;
+version(TANGOSVN){
+    static import tango.io.model.IFile;
+}
+else{
+    static import tango.io.FileConst;
+}
+
 static import tango.text.Text;
 import dwt.dwthelper.utils;
 
 alias tango.text.Text.Text!(char) StringBuffer;
 
 class DefaultContent : StyledTextContent {
+version(TANGOSVN){
+    private final static String LineDelimiter = tango.io.model.IFile.FileConst.NewlineString;
+}
+else{
     private final static String LineDelimiter = tango.io.FileConst.FileConst.NewlineString;
+}
 
     StyledTextListener[] textListeners; // stores text listeners for event sending
     String textStore; // stores the actual text