Mercurial > projects > dwt2
comparison org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/widgets/DirectoryDialog.d @ 49:7a2dd761a8b2
more work until dmd 2.026 linux segfaults.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 27 Mar 2009 12:59:54 +0100 |
parents | ddbfe84d86df |
children | d5075f5226e5 |
comparison
equal
deleted
inserted
replaced
48:ddbfe84d86df | 49:7a2dd761a8b2 |
---|---|
22 import org.eclipse.swt.widgets.Dialog; | 22 import org.eclipse.swt.widgets.Dialog; |
23 import org.eclipse.swt.widgets.Shell; | 23 import org.eclipse.swt.widgets.Shell; |
24 import org.eclipse.swt.widgets.Display; | 24 import org.eclipse.swt.widgets.Display; |
25 | 25 |
26 version(Tango){ | 26 version(Tango){ |
27 static import tango.io.model.IFile; | 27 static import tango.io.model.IFile; |
28 static import tango.text.Util; | |
29 } else { // Phobos | 28 } else { // Phobos |
29 static import std.path; | |
30 } | 30 } |
31 | 31 |
32 /** | 32 /** |
33 * Instances of this class allow the user to navigate | 33 * Instances of this class allow the user to navigate |
34 * the file system and select a directory. | 34 * the file system and select a directory. |
47 * @see <a href="http://www.eclipse.org/swt/examples.php">SWT Example: ControlExample, Dialog tab</a> | 47 * @see <a href="http://www.eclipse.org/swt/examples.php">SWT Example: ControlExample, Dialog tab</a> |
48 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> | 48 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> |
49 */ | 49 */ |
50 public class DirectoryDialog : Dialog { | 50 public class DirectoryDialog : Dialog { |
51 String message = "", filterPath = ""; | 51 String message = "", filterPath = ""; |
52 static const String SEPARATOR = tango.io.model.IFile.FileConst.PathSeparatorString; | 52 version(Tango){ |
53 static const String SEPARATOR = tango.io.model.IFile.FileConst.PathSeparatorString; | |
54 } else { // Phobos | |
55 static const String SEPARATOR = std.path.sep; | |
56 } | |
53 | 57 |
54 /** | 58 /** |
55 * Constructs a new instance of this class given only its parent. | 59 * Constructs a new instance of this class given only its parent. |
56 * | 60 * |
57 * @param parent a shell which will be the parent of the new instance | 61 * @param parent a shell which will be the parent of the new instance |