Bug 1325 : Not all preferences get saved/loaded correctly
Last modified: 2009-09-14 09:30




Status:
RESOLVED
Resolution:
DUPLICATE of bug 1320
Priority:
P2
Severity:
normal

 

Reporter:
Greger
Assigned To:
fry

Attachment Type Created Size Actions
Possible solution to bug. text/plain 2009-09-13 08:48 1.28 KB

Description:   Opened: 2009-09-13 08:17
Only tried in 1.0.7
Running Windows 7, 64-bit.

When I adjust the preferences, they don't get read correclty on next run.

I.e. I set editor to be extarnal = true.

When I run, the load function reads the line editor.external=true, but does
not set it, since it is not platform specific, and keeps the default. When
I close processing, the preferences file gets overwritten. So I have to set
the preferences every time.

I believe the problem is in the load function of Preferences.java

If I add .windows to the end of editor.external, the setting gets read, and
the option is sat when processing starts, but the setting gets lost again
when I close, since the line is removed from the preferences file when I close.
Additional Comment #1 From Greger 2009-09-13 08:39
If you put all plattform specific keys in it's own hashmap, untill all of
the file is read, and then apply them, you will avoid plattform specific
keys getting overwritten.
Additional Comment #2 From Greger 2009-09-13 08:48
edit]
Possible solution to bug.

Possible solution for the loading.
It does, however, seem to be a problem with platform specific settings, that
they disappear from the preferences-file, unless they are among the defaults.
Additional Comment #3 From fry 2009-09-14 09:30


*** This bug has been marked as a duplicate of 1320 ***