[root]/cdx/scorebot/util/config
Author | Changes | Lines of Code | Lines per Change |
---|---|---|---|
Totals | 70 (100.0%) | 1171 (100.0%) | 16.7 |
dound | 61 (87.1%) | 590 (50.4%) | 9.6 |
genned | 9 (12.9%) | 581 (49.6%) | 64.5 |
fixed serialVersionUID visibility / constancy
15 lines of code changed in:
Added public long serialVersionUID = 102L; to all serializable classes.
20 lines of code changed in:
The process which checks to see if the file currently being edited now prompts the user to see if they want to save changes or not only if the file has been changed, and always if the file has been changed. Previously, an imperfect method which didn't work as well was being used.
equals( Object o ) has also been overriden for all objects in the framework.
22 lines of code changed in:
Bug fix: options without possible values were passing a single empty possible value on accident when they really should've been passing none.
18 lines of code changed in:
Framework Change: getShortCopy should have been keeping possValues and throwing away all (allowed) values except one. It was throwing out possValues too -- this has been changed. (really a mistake in the framework planning)
17 lines of code changed in:
Implemented toString
14 lines of code changed in:
Changed the getType method so it only returns the name of the class itself, not its fully qualified name with the package it is in.
8 lines of code changed in:
Refactored a changed method name from ConfigOption.
3 lines of code changed in:
The role of the ConfigOption has changed significantly since its inception. Originally, its primary purpose was to provide the GUI and Tests a way to access options in a convenient way -- i.e. no worrying about translations between types. However, all translation has been abstracted away from ConfigOption's themselves and is now handled by the GUI which delegates that role to the Binding framework.
The ConfigOption is now only responsible for things which really belong to it -- how its "current value" varies over time (if at all) and the values it is allowed to contain (formerly called possible values, now called allowed values).
A number of methods changed as a result of this overhaul:
1) Name Change: getOption, setOption => getCurrentValue, setCurrentValue
2) Name Change: getOptionIndex => getSelectedIndex
3) Removed: all translation methods (nobody needed or used them anyway)
4) Changed: getType is now defined by ConfigOption and doesn't need to be overriden as it can determine the name of the type on its own without its children needing to specify a static string to return (as one done in the past).
59 lines of code changed in:
Removed the option field because it didn't contain any new information and was just intended to be a copy of the values.get(valueOn) option value. Fixed the getOption and setOption functionality to work properly with this and added a getOptionIndex to get the index in values that is currently representing the option's value.
13 lines of code changed in:
ComponType BINARY now populates the ConfigOption with true and false values automatically.
4 lines of code changed in:
rearranged...
21 lines of code changed in:
toString added which gets the name
5 lines of code changed in:
name support for options
16 lines of code changed in:
Uses the new SelfTranslator vice TranslatorStringString.
4 lines of code changed in:
Fixed ConfingOption design flaw so it now allows its values to be set and retrieved from their string representations. Translators now do the translation.
101 lines of code changed in:
The ConfigVariableOption has been merged into the ConfigOption class. All methods and fields in the ConfigVariableOption class have been moved into the ConfigOption class. All ConfigOptions are now ConfigVariableOptions.
This change was made to simplify the proccessing of ConfigOptions. It also seems unnecessary to have a distinction between the two since ConfigVariableOption's may be of VarianceType STATIC.
121 lines of code changed in:
Added a helper class SettingsFile to allow GUIs to easily save/restore recently used filenames and other settings. Javadoc updated in ConfigOption so it makes sense!
7 lines of code changed in:
ConfigOption now have a getType() method which returns a String which indicates what "type" of information it holds. The get/setType methods from ConfigVariableOption have been refactored to the name get/setVarianceType.
62 lines of code changed in:
Fixed JavaDoc problems.
3 lines of code changed in:
(3 more)