Mercurial > projects > dwt-addons
diff dwtx/jface/text/templates/persistence/TemplateReaderWriter.d @ 168:cef27f663573
jface.text ...
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Tue, 09 Sep 2008 17:44:11 +0200 |
parents | 1a5b8f8129df |
children |
line wrap: on
line diff
--- a/dwtx/jface/text/templates/persistence/TemplateReaderWriter.d Tue Sep 09 15:59:16 2008 +0200 +++ b/dwtx/jface/text/templates/persistence/TemplateReaderWriter.d Tue Sep 09 17:44:11 2008 +0200 @@ -19,6 +19,7 @@ import dwt.dwthelper.utils; import dwt.dwthelper.InputStream; +import dwt.dwthelper.OutputStream; import dwtx.dwtxhelper.Collection; import dwt.dwthelper.ResourceBundle; @@ -102,9 +103,10 @@ * @since 3.1 */ public TemplatePersistenceData readSingle(Reader reader, String id) { - TemplatePersistenceData[] datas= read(new InputSource(reader), null, id); + implMissing(__FILE__,__LINE__); +/+ TemplatePersistenceData[] datas= read(new InputSource(reader), null, id); if (datas.length > 0) - return datas[0]; + return datas[0];+/ return null; } @@ -117,7 +119,9 @@ * @throws IOException if reading from the stream fails */ public TemplatePersistenceData[] read(Reader reader, ResourceBundle bundle) { - return read(new InputSource(reader), bundle, null); + implMissing(__FILE__,__LINE__); + return null; +// return read(new InputSource(reader), bundle, null); } /** @@ -129,9 +133,11 @@ * @throws IOException if reading from the stream fails */ public TemplatePersistenceData[] read(InputStream stream, ResourceBundle bundle) { - return read(new InputSource(stream), bundle, null); + implMissing(__FILE__,__LINE__); + return null; +// return read(new InputSource(stream), bundle, null); } - +/++ /** * Reads templates from an <code>InputSource</code> and adds them to the templates. * @@ -219,7 +225,7 @@ return null; // dummy } - +++/ /** * Saves the templates as XML, encoded as UTF-8 onto the given byte stream. * @@ -228,7 +234,8 @@ * @throws IOException if writing the templates fails */ public void save(TemplatePersistenceData[] templates, OutputStream stream) { - save(templates, new StreamResult(stream)); + implMissing(__FILE__,__LINE__); +// save(templates, new StreamResult(stream)); } /** @@ -239,9 +246,11 @@ * @throws IOException if writing the templates fails */ public void save(TemplatePersistenceData[] templates, Writer writer) { - save(templates, new StreamResult(writer)); + implMissing(__FILE__,__LINE__); +// save(templates, new StreamResult(writer)); } +/++ /** * Saves the templates as XML. * @@ -386,5 +395,6 @@ } return TemplatePersistenceMessages.getString(key); // default messages } +++/ }