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