Ignore:
Timestamp:
2019-04-09T01:32:56+02:00 (5 years ago)
Author:
Don-vip
Message:

ensures consistency of upload comment:

  • fix #11168 - ctrl-z/undo could reset unwanted old changeset comment
  • fix #13474 - selecting "new changeset" after having entered a changeset comment did reset it to the previous value
  • fix #17452 - ctrl-enter while typing a changeset comment did upload with the previous value
  • fix behaviour of upload.comment.max-age: values were reset after 5 months instead of intended 4 hours because seconds were compared to milliseconds
  • avoid creation of unneeded undo/redo internal classes for non-editable text fields
  • ensures consistency of upload dialog if upload.comment properties are modified manually from advanced preferences
  • add a source attribute to preference events to know which class modified the preference entry
  • refactor reflection utils
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/StructUtils.java

    r13647 r14977  
    3333import org.openstreetmap.josm.tools.Logging;
    3434import org.openstreetmap.josm.tools.MultiMap;
    35 import org.openstreetmap.josm.tools.Utils;
     35import org.openstreetmap.josm.tools.ReflectionUtils;
    3636
    3737/**
     
    161161            }
    162162            try {
    163                 Utils.setObjectsAccessible(f);
     163                ReflectionUtils.setObjectsAccessible(f);
    164164                Object fieldValue = f.get(struct);
    165165                Object defaultFieldValue = f.get(structPrototype);
     
    215215                continue;
    216216            }
    217             Utils.setObjectsAccessible(f);
     217            ReflectionUtils.setObjectsAccessible(f);
    218218            if (f.getType() == Boolean.class || f.getType() == boolean.class) {
    219219                value = Boolean.valueOf(keyValue.getValue());
Note: See TracChangeset for help on using the changeset viewer.