Ignore:
Timestamp:
2017-08-24T23:29:01+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15182 - deprecate Main.toolbar. Replacement: gui.MainApplication.getToolbar()

File:
1 edited

Legend:

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

    r12636 r12637  
    1919import org.openstreetmap.josm.data.projection.Projections;
    2020import org.openstreetmap.josm.gui.MainApplication;
     21import org.openstreetmap.josm.gui.MainApplicationTest;
    2122import org.openstreetmap.josm.gui.MainPanel;
    2223import org.openstreetmap.josm.gui.layer.LayerManagerTest.TestLayer;
    23 import org.openstreetmap.josm.gui.preferences.ToolbarPreferences;
    2424import org.openstreetmap.josm.gui.util.GuiHelper;
    2525import org.openstreetmap.josm.io.CertificateAmendment;
     
    201201     * Make sure {@code Main.toolbar} is initialized.
    202202     */
     203    @SuppressWarnings("deprecation")
    203204    public static void initToolbar() {
     205        MainApplicationTest.initToolbar();
    204206        if (Main.toolbar == null) {
    205             Main.toolbar = new ToolbarPreferences();
     207            Main.toolbar = MainApplication.getToolbar();
    206208        }
    207209    }
Note: See TracChangeset for help on using the changeset viewer.