Project Settings

Currently all properties on the Prism settings dialog are saved in Java properties file format to ~/.prism. The properties are not, however, dealt with using Java's standard System.getProperty(String) and System.setProperty(String) methods. Instead PrismSettigs uses it's own parser (wtf!?) to load/save files. Properties must be defined before use in public static final variables in PrismSettings. These variables store metadata about the name of the property, description, and also type so that property types (class) can be checked. As such, properties are accessed using getString, getBoolean etc. methods.

What does this mean:

  • adding new properties is a pain;
  • default and acceptable values must be statically defined at compile time;
  • moving properties to the project file will be a pain as the property access API will probably need considerable revision;

============================================================================

-- ChrisPaton - 10 Oct 2006

Edit | Attach | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r2 - 10 Oct 2006 - 15:35:02 - ChrisPaton
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
This Wiki uses Cookies