General cleanup and various enhancements
-
Rflearning seems to be too lengthy. Refactor all class names to be RFL instead of Rflearning: RFLDocument etc. Leave package name the same.
- Rename RflearningTableModel into something more appropriate. What it holds? Name it after it contents. We will have more tables, so the names should be more descriptive and specific.
- Generalize Document loading procedure, all fields should be checked on existence. If there is no CavityName attribute, cavity should not be created. If any other field is missing it should be instantiated with some default value, maybe null. Iterate over
da.attributes()
with a switch statement inside instead of humongous if-else like here. Default values should be set in empty constructor. The main idea is ability to open files saved by older versions without failing.
- Test the above by hand-editing an XML file.
- Deltas should not be saved/loaded to/from a file.
- Should be not possible to add a cavity with empty name.