Mercurial > projects > dwt-addons
diff dwtx/jface/preference/PreferenceStore.d @ 197:0ea0c9f9008f
Remove tango deprecation warnings.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 18 Feb 2009 19:35:22 +0100 |
parents | a785420fe9ca |
children |
line wrap: on
line diff
--- a/dwtx/jface/preference/PreferenceStore.d Tue Feb 10 17:12:01 2009 +0100 +++ b/dwtx/jface/preference/PreferenceStore.d Wed Feb 18 19:35:22 2009 +0100 @@ -35,8 +35,8 @@ import dwt.dwthelper.utils; // import dwtx.dwtxhelper.Collection; -import tango.io.Print; -import tango.io.stream.FileStream; +import tango.io.stream.Format; +import tango.io.device.File; import tango.io.model.IConduit; import tango.text.Util; @@ -251,7 +251,7 @@ return defaultValue; } - public void list(Print!(char) print){ + public void list(FormatOutput!(char) print){ foreach( k, v; map ){ print( k )( '=' )( v ).newline; } @@ -631,7 +631,7 @@ * @param out * the print stream */ - public void list(Print!(char) out_) { + public void list(FormatOutput!(char) out_) { properties.list(out_); } @@ -657,7 +657,7 @@ if (filename is null) { throw new IOException("File name not specified");//$NON-NLS-1$ } - FileInput in_ = new FileInput(filename); + File in_ = new File(filename, File.ReadExisting); load(in_.input); in_.close(); } @@ -726,9 +726,9 @@ if (filename is null) { throw new IOException("File name not specified");//$NON-NLS-1$ } - FileOutput out_ = null; + File out_ = null; try { - out_ = new FileOutput(filename); + out_ = new File(filename,File.WriteCreate); save(out_, null); } finally { if (out_ !is null) {