Ignore:
Timestamp:
2020-05-19T06:32:38+02:00 (4 years ago)
Author:
GerdP
Message:

see #19257: remove duplicated code in different implementations of ShowHistoryAction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/history/ShowHistoryAction.java

    r16460 r16461  
    5252    static class DoubleClickAdapter extends MouseAdapter {
    5353        private final Function<MouseEvent, PrimitiveId> primitiveIdFunction;
    54         private final ShowHistoryAction showHistoryAction = new ShowHistoryAction();
    5554
    5655        DoubleClickAdapter(Function<MouseEvent, PrimitiveId> primitiveIdFunction) {
     
    6564            if (pid == null || pid.isNew())
    6665                return;
    67             showHistoryAction.setPrimitiveId(pid);
    68             showHistoryAction.run();
     66            HistoryBrowserDialogManager.getInstance().showHistory(Collections.singleton(pid));
    6967        }
    7068    }
Note: See TracChangeset for help on using the changeset viewer.