Signed-off-by: Mike Beattie <mike@ethernal.org>
public static int launcher_channel;
- public static void init() {
- //preferences = Preferences.userRoot().node("/org/altusmetrum/altosui");
+ public static void init(AltosPreferencesBackend in_backend) {
+ backend = in_backend;
/* Initialize logdir from preferences */
String logdir_string = backend.getString(logdirPreference, null);
AltosConvert.imperial_units = backend.getBoolean(unitsPreference, false);
}
- static { init(); }
-
public static void flush_preferences() {
backend.flush();
}
load_library(null);
+ AltosUIPreferences.init(new AltosUIPreferencesBackend());
AltosUIPreferences.set_component(this);
pane = getContentPane();
/* Serial debug */
static boolean serial_debug;
- public static void init() {
+ public static void init(AltosUIPreferencesBackend in_backend) {
+ super(in_backend);
+
font_listeners = new LinkedList<AltosFontListener>();
font_size = backend.getInt(fontSizePreference, Altos.font_size_medium);
AltosLink.set_debug(serial_debug);
}
- static { init(); }
-
static void set_component(Component in_component) {
component = in_component;
}