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/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java

    r12620 r12637  
    6868import org.openstreetmap.josm.data.imagery.ImageryInfo;
    6969import org.openstreetmap.josm.data.imagery.ImageryLayerInfo;
     70import org.openstreetmap.josm.gui.MainApplication;
    7071import org.openstreetmap.josm.gui.tagging.presets.TaggingPreset;
    7172import org.openstreetmap.josm.gui.util.GuiHelper;
     
    502503                t.remove(res);
    503504                Main.pref.putCollection("toolbar", t);
    504                 Main.toolbar.refreshToolbarControl();
     505                MainApplication.getToolbar().refreshToolbarControl();
    505506            }
    506507        });
     
    523524                p.setVisible(true);
    524525                // refresh toolbar to try using changed shortcuts without restart
    525                 Main.toolbar.refreshToolbarControl();
     526                MainApplication.getToolbar().refreshToolbarControl();
    526527            }
    527528        });
     
    987988            }
    988989            Main.pref.putCollection("toolbar", t);
    989             Main.toolbar.refreshToolbarControl();
     990            MainApplication.getToolbar().refreshToolbarControl();
    990991            return false;
    991992        }
     
    12141215        }
    12151216        Main.pref.putCollection("toolbar", t);
    1216         Main.toolbar.refreshToolbarControl();
     1217        MainApplication.getToolbar().refreshToolbarControl();
    12171218    }
    12181219
Note: See TracChangeset for help on using the changeset viewer.