Changeset 14834 in josm for trunk/src/org


Ignore:
Timestamp:
2019-03-05T11:20:34+01:00 (6 years ago)
Author:
GerdP
Message:

see #17342: Simplify code and drastically improve performance when selection contains a large number of objects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/validator/ValidatorTreePanel.java

    r14826 r14834  
    352352        walkAndSelectRelatedErrors(new TreePath(getRoot()), new HashSet<>(primitives)::contains, paths);
    353353        getSelectionModel().clearSelection();
    354         for (TreePath path : paths) {
    355             expandPath(path);
    356             getSelectionModel().addSelectionPath(path);
    357         }
     354        getSelectionModel().setSelectionPaths(paths.toArray(new TreePath[paths.size()]));
    358355        // make sure that first path is visible
    359356        if (!paths.isEmpty()) {
Note: See TracChangeset for help on using the changeset viewer.