From ff0c70b54edbbe3436583d6491d4a56d96302de5 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 17 Jan 2009 14:29:28 +0000 Subject: added initial multiple langua support. --- sources/prefs/VSPrefs.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'sources/prefs/VSPrefs.java') diff --git a/sources/prefs/VSPrefs.java b/sources/prefs/VSPrefs.java index f5e68f3..31e1f22 100644 --- a/sources/prefs/VSPrefs.java +++ b/sources/prefs/VSPrefs.java @@ -36,6 +36,9 @@ import serialize.*; * @author Paul C. Buetow */ public class VSPrefs { + /** Check if we want to overwrite description strings */ + //private boolean useDefaultStrings = false; + /** The Constant BOOLEAN_PREFIX. */ public static final String BOOLEAN_PREFIX = "Boolean: "; @@ -826,6 +829,14 @@ public class VSPrefs { initUnit(LONG_PREFIX + key, unit); } + /** + * Deletes the long. + * + * @param key the key + */ + public synchronized void deleteLong(String key) { + longPrefs.remove(key); + } /** * Sets the long. @@ -1187,4 +1198,13 @@ public class VSPrefs { return allKeys; } + + /** + * Not overwrite description string defaults + */ + /* + public void useDefaultStrings(boolean value) { + useDefaultStrings = value; + } + */ } -- cgit v1.2.3