diff dwt/widgets/FileDialog.d @ 265:07d9ed8927b6

Add version TANGOSVN
author Frank Benoit <benoit@tionex.de>
date Sun, 06 Jul 2008 15:34:21 +0200
parents c0d810de7093
children d472fae79005
line wrap: on
line diff
--- a/dwt/widgets/FileDialog.d	Sun Jul 06 15:34:08 2008 +0200
+++ b/dwt/widgets/FileDialog.d	Sun Jul 06 15:34:21 2008 +0200
@@ -22,7 +22,12 @@
 import dwt.widgets.Display;
 import dwt.dwthelper.utils;
 
-static import tango.io.FileConst;
+version(TANGOSVN)
+    static import tango.io.model.IFile;
+}
+else{
+    static import tango.io.FileConst;
+}
 static import tango.text.Util;
 static import tango.text.Text;
 
@@ -41,7 +46,7 @@
  * IMPORTANT: This class is intended to be subclassed <em>only</em>
  * within the DWT implementation.
  * </p>
- * 
+ *
  * @see <a href="http://www.eclipse.org/swt/snippets/#filedialog">FileDialog snippets</a>
  * @see <a href="http://www.eclipse.org/swt/examples.php">DWT Example: ControlExample, Dialog tab</a>
  * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
@@ -56,7 +61,12 @@
     int filterIndex = -1;
     bool overwrite = false;
     GtkWidget* handle;
+version(TANGOSVN)
+    static final char SEPARATOR = tango.io.model.IFile.FileConst.PathSeparatorChar;
+}
+else{
     static final char SEPARATOR = tango.io.FileConst.FileConst.PathSeparatorChar;
+}
     static final char EXTENSION_SEPARATOR = ';';
 
 /**