Changes between Version 4 and Version 5 of Ticket #4421, comment 8
- Timestamp:
- 2012-02-28T11:29:29+01:00 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #4421, comment 8
v4 v5 1 I looked at Preferences.java code and see almost no fast possibility to reuse preference-reading code. 2 3 We will need at least '''some method to read preferences from XML fragment'''. As I see, '''modify''' and '''replace''' operations need to create separate Preferences object, read XML fragment to it and perform merge or replacement operation using Main.pref . 1 As I see, '''modify''' and '''replace''' operations need to create separate Preferences object, read XML fragment to it and perform merge or replacement operation using Main.pref . 4 2 5 3 All other operations (regexp-based deletion) can use their own syntax. Installing plugin may be removed (but an example with download and preferences-modify should be provided). … … 7 5 I do not know how to deal with default values and prefer to ignore them :) 8 6 9 Do you propose to use StAX for XML reading too? I would preferDOM for reading changes.xml- it allow toextractSource from nodefor preference readers.7 I have chosen chose DOM for reading changes.xml, separate node will be extracted and for preference readers. 10 8 11 9 Please people give me some advice!