Mercurial > projects > dwt-samples
changeset 130:5c1906bfc206 Release-1
Fix deprecated tango API
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 26 Jul 2008 14:35:04 +0200 |
parents | ae94c6a65f9e |
children | 51f0125d8807 104f5ed240fc |
files | jface/ShowFieldPrefs.d jface/ShowPrefs.d |
diffstat | 2 files changed, 6 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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" )); }
--- 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 );