Changeset 130:5c1906bfc206

Show
Ignore:
Timestamp:
07/26/08 08:35:04 (4 months ago)
Author:
Frank Benoit <benoit@tionex.de>
Children:

131:51f0125d8807 132:104f5ed240fc

Tags:

Release-1

branch:
default
Message:

Fix deprecated tango API

Files:

Legend:

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

    r62 r130  
    3535 
    3636import tango.io.File; 
    37 import tango.io.FilePath; 
     37import Path = tango.io.Path; 
    3838 
    3939version(JIVE) import jive.stacktrace; 
     
    184184 
    185185void main(){ 
    186     scope fn = new FilePath( FILENAME ); 
    187     if( !fn.exists ){ 
    188         scope prefs = new File( fn ); 
     186    if( !Path.exists( FILENAME ) ){ 
     187        scope prefs = new File( FILENAME ); 
    189188        version(linux){ 
    190189            prefs.write( import("jface.showfieldprefs.properties.linux" )); 
  • jface/ShowPrefs.d

    r62 r130  
    3535 
    3636import tango.io.File; 
    37 import tango.io.FilePath; 
     37import Path = tango.io.Path; 
    3838 
    3939version(JIVE) import jive.stacktrace; 
     
    308308 
    309309void main(){ 
    310     scope fn = new FilePath( FILENAME ); 
    311     if( !fn.exists ){ 
    312         scope prefs = new File( fn ); 
     310    if( !Path.exists(FILENAME) ){ 
     311        scope prefs = new File( FILENAME ); 
    313312        prefs.write( import("jface.showprefs.properties" )); 
    314313    }