# HG changeset patch # User Frank Benoit # Date 1217075704 -7200 # Node ID 5c1906bfc2069526a39ee6d5a190ed78ceadb1ec # Parent ae94c6a65f9e8a4ba631e7cf73e10f4d4fcc8da4 Fix deprecated tango API diff -r ae94c6a65f9e -r 5c1906bfc206 jface/ShowFieldPrefs.d --- a/jface/ShowFieldPrefs.d Sat Jul 26 02:47:41 2008 +0200 +++ b/jface/ShowFieldPrefs.d Sat Jul 26 14:35:04 2008 +0200 @@ -34,7 +34,7 @@ import dwt.dwthelper.utils; import tango.io.File; -import tango.io.FilePath; +import Path = tango.io.Path; version(JIVE) import jive.stacktrace; @@ -183,9 +183,8 @@ void main(){ - scope fn = new FilePath( FILENAME ); - if( !fn.exists ){ - scope prefs = new File( fn ); + if( !Path.exists( FILENAME ) ){ + scope prefs = new File( FILENAME ); version(linux){ prefs.write( import("jface.showfieldprefs.properties.linux" )); } diff -r ae94c6a65f9e -r 5c1906bfc206 jface/ShowPrefs.d --- a/jface/ShowPrefs.d Sat Jul 26 02:47:41 2008 +0200 +++ b/jface/ShowPrefs.d Sat Jul 26 14:35:04 2008 +0200 @@ -34,7 +34,7 @@ import dwt.dwthelper.utils; import tango.io.File; -import tango.io.FilePath; +import Path = tango.io.Path; version(JIVE) import jive.stacktrace; @@ -307,9 +307,8 @@ } void main(){ - scope fn = new FilePath( FILENAME ); - if( !fn.exists ){ - scope prefs = new File( fn ); + if( !Path.exists(FILENAME) ){ + scope prefs = new File( FILENAME ); prefs.write( import("jface.showprefs.properties" )); } ShowPrefs.main( null );