Ignore:
Timestamp:
2017-08-26T02:03:44+02:00 (7 years ago)
Author:
donvip
Message:

fix deprecation warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/public_transport_layer/src/ptl/Plugin.java

    r32538 r33528  
    22package ptl;
    33
    4 import org.openstreetmap.josm.Main;
     4import org.openstreetmap.josm.gui.MainApplication;
    55import org.openstreetmap.josm.gui.MainMenu;
    66import org.openstreetmap.josm.plugins.PluginInformation;
     
    1010    public Plugin(PluginInformation info) {
    1111        super(info);
    12         MainMenu.add(Main.main.menu.dataMenu, new PublicTransportLayer.AddLayerAction());
    13         MainMenu.add(Main.main.menu.dataMenu, new DistanceBetweenStops());
     12        MainMenu.add(MainApplication.getMenu().dataMenu, new PublicTransportLayer.AddLayerAction());
     13        MainMenu.add(MainApplication.getMenu().dataMenu, new DistanceBetweenStops());
    1414    }
    1515}
    16 
Note: See TracChangeset for help on using the changeset viewer.