Changes between Version 4 and Version 5 of Ticket #4421, comment 8


Ignore:
Timestamp:
2012-02-28T11:29:29+01:00 (12 years ago)
Author:
akks

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 .
     1As 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 .
    42
    53All 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).
     
    75I do not know how to deal with default values and prefer to ignore them :)
    86
    9 Do you propose to use StAX for XML reading too? I would prefer DOM for reading changes.xml - it allow to extract Source from node for preference readers.
     7I have chosen chose DOM for reading changes.xml, separate node will  be extracted and for preference readers.
    108
    119Please people give me some advice!