FreeMind refactoring plan

From FreeMind

Jump to: navigation, search
m
(loading and saving)
Line 17: Line 17:
* edges
* edges
* icons
* icons
-
* attributes  
+
|-
 +
| Map loading and saving.
 +
| FreeMind specific code introduced directly into XML parser XMLElement. Mixing of XML parsing logic with freemind logic makes code difficult to understand.
 +
| * attributes  
and so on.
and so on.
Line 52: Line 55:
|-
|-
| Map loading.  
| Map loading.  
-
| FreeMind specific code introduced directly into XML parser XMLElement. Mixing of XML parsing logic with freemind logic makes code difficult to understand.
+
| FreeMind specific code introduced directly into XML parser XMLElement. Mixing of XML parsing logic with freemind logic makes code difficult to understand. Loading and saving of map and node properties should be implemented in property packages, not at the central place.  
-
| New class NodeXmlElement extending XMLElement should contain freemind specific issues. .load(XMLElement e) methods symmetric to existing .save(XMLElement) methods should be created. Loading and saving of properties should be implemented in property packages, not at the central place.  
+
| New class NodeXmlElement extending XMLElement should contain freemind specific issues. .load(XMLElement e) methods symmetric to existing .save(XMLElement) methods should be created.  
-
Both .load and .save methods should be moved from model to controller classes. So the model classes of browse mode and of mind map editing mode become identical, there are only differences between controllers.  
+
|-
 +
| Models overloaded by loading and saving code.
 +
| Saving and Loading code belongs to model classes instead of controller classes. This leads to different model classes for browse and mind map editing modes.
 +
| All .load and .save methods should be moved from model to controller classes. So the model classes of browse mode and of mind map editing mode become identical, there are only differences between controllers.  
|}
|}

Revision as of 12:12, 1 May 2008

Personal tools