Changeset 17687 in josm for trunk/test


Ignore:
Timestamp:
2021-03-29T23:05:59+02:00 (4 years ago)
Author:
simon04
Message:

fix #19889 - CI contains thousands of "Keystroke ... is already assigned to ..., will be overridden by ..." warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/MainApplicationTest.java

    r17677 r17687  
    6767     */
    6868    public static void initContentPane() {
    69         if (MainApplication.contentPanePrivate == null) {
    70             MainApplication.contentPanePrivate = new JPanel(new BorderLayout());
    71         }
     69        // init every time to avoid "Keystroke %s is already assigned to %s"
     70        MainApplication.contentPanePrivate = new JPanel(new BorderLayout());
    7271    }
    7372
     
    104103     */
    105104    public static void initToolbar() {
    106         if (MainApplication.toolbar == null) {
    107             MainApplication.toolbar = new ToolbarPreferences();
    108         }
     105        // init every time to avoid "Registered toolbar action"
     106        MainApplication.toolbar = new ToolbarPreferences();
    109107    }
    110108
Note: See TracChangeset for help on using the changeset viewer.