Changeset 111:5fe95b1ccf68

Show
Ignore:
Timestamp:
07/06/08 17:35:10 (5 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

Fix: compile error for tango svn

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • jface/FileTreeViewer.d

    r73 r111  
    3636//------------------------------------ 
    3737 
     38version(TANGOSVN){ 
     39import tango.io.FileSystem; 
     40} 
     41else{ 
    3842import tango.io.FileRoots; 
     43} 
    3944import tango.io.FilePath; 
    4045import tango.util.log.Trace; 
     
    129134        Object[] res; 
    130135 
     136version(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} 
     145else{ 
    131146        foreach( root; FileRoots.list()){ 
    132147            // ignore floppy drives, they bring up strange error messages 
     
    136151            res ~= new FilePath( root ); 
    137152        } 
    138  
     153
    139154        return res; 
    140155    }