This commit is contained in:
gac-x11ma
2026-06-24 13:28:45 +02:00
parent b658ce0a15
commit 97ecbd2af2
113 changed files with 5193 additions and 456368 deletions
@@ -0,0 +1,28 @@
package sparseviewer.prefs;
import ij.Prefs;
public class PluginPrefs {
private static final String PREFIX = "sparseScanViewer.";
public static int getInt(String key, int defaultValue) {
return (int) Prefs.get(PREFIX + key, defaultValue);
}
public static void setInt(String key, int value) {
Prefs.set(PREFIX + key, value);
}
public static String getString(String key, String defaultValue) {
return Prefs.get(PREFIX + key, defaultValue);
}
public static void setString(String key, String value) {
Prefs.set(PREFIX + key, value);
}
public static void save() {
Prefs.savePreferences();
}
}