Results 1 to 4 of 4

Thread: Preferences Vs Settings

  1. #1
    Join Date
    Aug 2004
    Location
    Brisbane (Australia)
    Posts
    57

    Default Preferences Vs Settings

    I noticed in the sandbox are two interesting packages, org.springframework.richclient.preferences and org.springframework.richclient.settings. Both seem to offer classes to simplify the setting and retrieving of application and user settings/preferences.

    These two packages seem to address overlapping problem scopes, and I was wondering if there are any plans to merge the two together?

    regards,
    Scott

  2. #2
    Join Date
    Sep 2004
    Location
    Ghent, Belgium
    Posts
    224

    Default

    The structure is the following:

    - settings package: contains everything that has to do with storing and loading settings (user and internal settings)
    - preferences package: contains the preference dialog, and preferecepages for building a preference dialog. (and using the classes from the settings package for storing and retrieving user settings)

    Internal settings cover widget state, window size, ...
    User settings cover the application wide settings, that affect the behaviour of the program (such as a working directory, proxy settings, ...)

    These two packages are under heavy development, and will likely undergo some changes. But I'm working on it.

    Hope this helps,

    Peter

  3. #3
    Join Date
    Aug 2004
    Location
    Brisbane (Australia)
    Posts
    57

    Default

    Quote Originally Posted by pdbruycker
    The structure is the following:

    - settings package: contains everything that has to do with storing and loading settings (user and internal settings)
    - preferences package: contains the preference dialog, and preferecepages for building a preference dialog. (and using the classes from the settings package for storing and retrieving user settings)

    Internal settings cover widget state, window size, ...
    User settings cover the application wide settings, that affect the behaviour of the program (such as a working directory, proxy settings, ...)
    The reason I asked was that the settings package provides an implementation that stores the settings via the java.util.preferences API, whereas the preferences package only supplies one that stores preferences in a properties file.

    I notice that you said that the preferences package would use the settings classes to store/retrieve user preferences. This was what I was driving at in my original email, since the current classes don't. But I can see you had that in mind anyway.

    Scott

  4. #4
    Join Date
    Sep 2004
    Location
    Ghent, Belgium
    Posts
    224

    Default

    You're correct. I have on my local computer a version of the preferences package that uses the settings package for storing and retrieving settings, I'll check it in as soon as I can.

    The implementation in the preferences package that stores prefs in a properties file is obsolete, as it doesn't provide hierarchical organization of settings.

    peter

Similar Threads

  1. Property settings
    By too_many_details in forum Container
    Replies: 3
    Last Post: May 11th, 2005, 09:54 AM
  2. Getting application configuration settings from DB
    By too_many_details in forum Data
    Replies: 1
    Last Post: May 6th, 2005, 07:42 AM
  3. Configuration / Settings Best Practice?
    By lukasbradley in forum Container
    Replies: 1
    Last Post: Mar 8th, 2005, 12:30 PM
  4. Replies: 1
    Last Post: Jan 20th, 2005, 03:29 PM
  5. Eclipse 3.0 compiler settings for Spring build?
    By jbetancourt in forum Architecture
    Replies: 4
    Last Post: Oct 5th, 2004, 03:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •