# HG changeset patch # User Daniele Nicolodi # Date 1323098406 -3600 # Node ID 4be5f7a5316fa1848c1bcb10e8b0600624500893 # Parent 03d92954b93996c2d1ab701b1f5cc535b7ba3766 Suppress output messages on preferences loading and saving diff -r 03d92954b939 -r 4be5f7a5316f m-toolbox/classes/@LTPDAprefs/loadPrefs.m --- a/m-toolbox/classes/@LTPDAprefs/loadPrefs.m Mon Dec 05 16:20:06 2011 +0100 +++ b/m-toolbox/classes/@LTPDAprefs/loadPrefs.m Mon Dec 05 16:20:06 2011 +0100 @@ -10,7 +10,6 @@ % function loadPrefs(varargin) - fprintf('Loading LTPDA preferences from %s ...\n', LTPDAprefs.preffile); v = ver('LTPDA'); nv = utils.helper.ver2num(v(1).Version); prefs = mpipeline.ltpdapreferences.LTPDAPreferences.loadFromDisk(LTPDAprefs.preffile, nv); diff -r 03d92954b939 -r 4be5f7a5316f src/MPipeline2/src/mpipeline/ltpdapreferences/LTPDAPreferences.java --- a/src/MPipeline2/src/mpipeline/ltpdapreferences/LTPDAPreferences.java Mon Dec 05 16:20:06 2011 +0100 +++ b/src/MPipeline2/src/mpipeline/ltpdapreferences/LTPDAPreferences.java Mon Dec 05 16:20:06 2011 +0100 @@ -141,10 +141,10 @@ public static LTPDAPreferences loadFromDisk(String filepath, float version) { LTPDAPreferences loadedPrefs = null; - File filename = new File(filepath); if (filename.exists()) { + Utils.dmsg("Loading preferences from " + filepath); try { DocumentBuilderFactory parserFactory = DocumentBuilderFactory.newInstance(); parserFactory.setValidating(false); @@ -198,9 +198,8 @@ } public void writeToDisk() { - Utils.msg("Saving preferences to " + filename); - if (filename != null) { + Utils.dmsg("Saving preferences to " + filename); try { Document doc = XMLUtils.createDocument("LTPDAPreferences"); Element root = doc.getDocumentElement();