From: James H. <hol...@ke...> - 2002-11-04 18:44:22
|
I've added the im.prefs.Preferences class to CVS. To get at the object for the main preferences, call control.getMainPrefs(). This will return a Preferences object. Of course this object is useless if it doesn't have the get/set methods you need, so add them as neccesary. I also changed the name of the preferences file, so it doesn't clobber the file being created by the Client class. We can change the name back once the Client class has switched to using Preferences. When you add new get/set methods to the Preferences, make note of whether you save or not. I made saving preferences a seperate public method. The idea is that we may at some time need to make a large number of changes to the preferences in a short amount of time. Saving after each change would cause massive slow down. So, when you add a get/set method you have to make note of whether you save or not, so we can tell from the docs what changes we have to manually save after and what ones we don't. A forced save on program exit would be a good idea too. |