Changeset 118:7b1c122b4128
- Timestamp:
- 07/12/08 18:51:55
(2 months ago)
- Author:
- Frank Benoit <benoit@tionex.de>
- branch:
- default
- Message:
Add version TANGOSVN
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r78 |
r118 |
|
| 32 | 32 | import dwt.dwthelper.utils; |
|---|
| 33 | 33 | import tango.io.FilePath; |
|---|
| | 34 | version(TANGOSVN){ |
|---|
| | 35 | import tango.io.FileSystem; |
|---|
| | 36 | } |
|---|
| | 37 | else{ |
|---|
| 34 | 38 | import tango.io.FileRoots; |
|---|
| | 39 | } |
|---|
| 35 | 40 | |
|---|
| 36 | 41 | void main () { |
|---|
| … | … | |
| 40 | 45 | shell.setLayout (new FillLayout ()); |
|---|
| 41 | 46 | auto tree = new Tree (shell, DWT.BORDER); |
|---|
| | 47 | version(TANGOSVN){ |
|---|
| | 48 | auto roots = FileSystem.roots(); |
|---|
| | 49 | } |
|---|
| | 50 | else{ |
|---|
| 42 | 51 | auto roots = FileRoots.list(); |
|---|
| | 52 | } |
|---|
| 43 | 53 | foreach (file; roots) { |
|---|
| 44 | 54 | auto root = new TreeItem (tree, 0); |
|---|