Mercurial > projects > dwt-samples
comparison jface/FileTreeViewer.d @ 111:5fe95b1ccf68
Fix: compile error for tango svn
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 06 Jul 2008 23:35:10 +0200 |
parents | 9ff9b8f7284b |
children | ae94c6a65f9e |
comparison
equal
deleted
inserted
replaced
109:be3a48f1d596 | 111:5fe95b1ccf68 |
---|---|
33 | 33 |
34 //------------------------------------ | 34 //------------------------------------ |
35 //import dwt.dwthelper.utils; | 35 //import dwt.dwthelper.utils; |
36 //------------------------------------ | 36 //------------------------------------ |
37 | 37 |
38 version(TANGOSVN){ | |
39 import tango.io.FileSystem; | |
40 } | |
41 else{ | |
38 import tango.io.FileRoots; | 42 import tango.io.FileRoots; |
43 } | |
39 import tango.io.FilePath; | 44 import tango.io.FilePath; |
40 import tango.util.log.Trace; | 45 import tango.util.log.Trace; |
41 | 46 |
42 import tango.util.collection.model.Seq; | 47 import tango.util.collection.model.Seq; |
43 import tango.util.collection.ArraySeq; | 48 import tango.util.collection.ArraySeq; |
126 } | 131 } |
127 | 132 |
128 public override Object[] getElements( Object arg0 ){ | 133 public override Object[] getElements( Object arg0 ){ |
129 Object[] res; | 134 Object[] res; |
130 | 135 |
136 version(TANGOSVN){ | |
137 foreach( root; FileSystem.roots()){ | |
138 // ignore floppy drives, they bring up strange error messages | |
139 if( root == `A:\`|| root == `B:\` ){ | |
140 continue; | |
141 } | |
142 res ~= new FilePath( root ); | |
143 } | |
144 } | |
145 else{ | |
131 foreach( root; FileRoots.list()){ | 146 foreach( root; FileRoots.list()){ |
132 // ignore floppy drives, they bring up strange error messages | 147 // ignore floppy drives, they bring up strange error messages |
133 if( root == `A:\`|| root == `B:\` ){ | 148 if( root == `A:\`|| root == `B:\` ){ |
134 continue; | 149 continue; |
135 } | 150 } |
136 res ~= new FilePath( root ); | 151 res ~= new FilePath( root ); |
137 } | 152 } |
138 | 153 } |
139 return res; | 154 return res; |
140 } | 155 } |
141 | 156 |
142 public override void dispose(){ | 157 public override void dispose(){ |
143 } | 158 } |