Mercurial > projects > dwt-samples
comparison jface/ShowFieldPrefs.d @ 130:5c1906bfc206 Release-1
Fix deprecated tango API
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 26 Jul 2008 14:35:04 +0200 |
parents | caaf053c44d6 |
children |
comparison
equal
deleted
inserted
replaced
129:ae94c6a65f9e | 130:5c1906bfc206 |
---|---|
32 import dwt.layout.GridData; | 32 import dwt.layout.GridData; |
33 import dwt.DWT; | 33 import dwt.DWT; |
34 import dwt.dwthelper.utils; | 34 import dwt.dwthelper.utils; |
35 | 35 |
36 import tango.io.File; | 36 import tango.io.File; |
37 import tango.io.FilePath; | 37 import Path = tango.io.Path; |
38 | 38 |
39 version(JIVE) import jive.stacktrace; | 39 version(JIVE) import jive.stacktrace; |
40 | 40 |
41 const char[] FILENAME = "showfieldprefs"; | 41 const char[] FILENAME = "showfieldprefs"; |
42 | 42 |
181 } | 181 } |
182 } | 182 } |
183 | 183 |
184 | 184 |
185 void main(){ | 185 void main(){ |
186 scope fn = new FilePath( FILENAME ); | 186 if( !Path.exists( FILENAME ) ){ |
187 if( !fn.exists ){ | 187 scope prefs = new File( FILENAME ); |
188 scope prefs = new File( fn ); | |
189 version(linux){ | 188 version(linux){ |
190 prefs.write( import("jface.showfieldprefs.properties.linux" )); | 189 prefs.write( import("jface.showfieldprefs.properties.linux" )); |
191 } | 190 } |
192 version(Windows){ | 191 version(Windows){ |
193 prefs.write( import("jface.showfieldprefs.properties.win" )); | 192 prefs.write( import("jface.showfieldprefs.properties.win" )); |