User Tools

Site Tools


project:mt:startup:tecdesc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
project:mt:startup:tecdesc [2023/05/23 14:15] snarfburproject:mt:startup:tecdesc [2023/05/23 14:30] (current) snarfbur
Line 14: Line 14:
  
 ==== Refactor: UI startup frame ==== ==== Refactor: UI startup frame ====
 +
 +=== Best Solution ===
  
   * Separate user from system settings, users first   * Separate user from system settings, users first
Line 23: Line 25:
   * Describe usage of MapTool.cgf   * Describe usage of MapTool.cgf
   * Describe keys for advanced options   * Describe keys for advanced options
 +
 +=== Minimum Solution ===
 +
 +  * Add description for the startup.properties file and the minimum how to use it.
  
 ===== Implementation Decisions ===== ===== Implementation Decisions =====
Line 49: Line 55:
   * **User Parameters** \\ At least an advanced user want to have control over them (e.g. DATA_DIR, Language). Hard to change them after initialization, so also restart to make a change active. \\ This should be handled outside the cfg-file inside a startup.properties file and/or cmdOptions. For downward compatibility an initial value can also be set in the cfg file or by -D java arguments.   * **User Parameters** \\ At least an advanced user want to have control over them (e.g. DATA_DIR, Language). Hard to change them after initialization, so also restart to make a change active. \\ This should be handled outside the cfg-file inside a startup.properties file and/or cmdOptions. For downward compatibility an initial value can also be set in the cfg file or by -D java arguments.
 The current UserJvmOptions is therefore a mix of JVM, library and application options and should be refactored. Since it has also a lot of methods to handle the cfg file values, I would at least recommend an renaming. \\ A first closer check shows that this class is mainly used in the PreferenceDialog, so it should be refactored, when the last part (Refactor UI startup frame) will be done. The current UserJvmOptions is therefore a mix of JVM, library and application options and should be refactored. Since it has also a lot of methods to handle the cfg file values, I would at least recommend an renaming. \\ A first closer check shows that this class is mainly used in the PreferenceDialog, so it should be refactored, when the last part (Refactor UI startup frame) will be done.
 +
 +==== Refactor: UI startup frame ====
 +
 +Analysis of the Option Dialog shows:
 +
 +  * All in one Class:
 +  * Swing
 +  * Generated Code: Tool xxx used
 +
 +Since Swing is deprecated and I have no experience with the Tool or with JavaFX I will go for the minimum + bug fixing (show the correct values) and maybe add the new values (without the tool).
  
 ===== Implementation Questions ===== ===== Implementation Questions =====
project/mt/startup/tecdesc.1684844120.txt.gz · Last modified: 2023/05/23 14:15 by snarfbur