Changeset 33764 in osm for applications/editors/josm


Ignore:
Timestamp:
2017-11-04T18:09:15+01:00 (7 years ago)
Author:
donvip
Message:

update to JOSM 12643

Location:
applications/editors/josm/plugins/public_transport
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/public_transport/build.xml

    r33737 r33764  
    55    <property name="commit.message" value="Commit message"/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="12636"/>
     7    <property name="plugin.main.version" value="12643"/>
    88
    99    <property name="plugin.author" value="Roland M. Olbricht"/>
  • applications/editors/josm/plugins/public_transport/src/public_transport/GTFSImporterAction.java

    r33737 r33764  
    3131import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor;
    3232import org.openstreetmap.josm.gui.MainApplication;
     33import org.openstreetmap.josm.tools.Logging;
    3334
    3435public class GTFSImporterAction extends JosmAction {
     
    5253                false);
    5354        putValue("toolbar", "publictransport/gtfsimporter");
    54         Main.toolbar.register(this);
     55        MainApplication.getToolbar().register(this);
    5556    }
    5657
     
    161162            }
    162163        } catch (FileNotFoundException e) {
    163             Main.error(e);
     164            Logging.error(e);
    164165            JOptionPane.showMessageDialog(null, tr("File \"{0}\" does not exist", file.getName()));
    165166        } catch (IOException e) {
    166             Main.error(e);
     167            Logging.error(e);
    167168            JOptionPane.showMessageDialog(null, tr("IOException \"{0}\" occurred", e.toString()));
    168169        }
     
    297298            return;
    298299        box.enlargeBoundingBox();
    299         Main.map.mapView.zoomTo(box);
     300        MainApplication.getMap().mapView.zoomTo(box);
    300301    }
    301302
  • applications/editors/josm/plugins/public_transport/src/public_transport/PublicTransportPlugin.java

    r33053 r33764  
    99import javax.swing.JMenuItem;
    1010
    11 import org.openstreetmap.josm.Main;
     11import org.openstreetmap.josm.gui.MainApplication;
    1212import org.openstreetmap.josm.gui.MainMenu;
    1313import org.openstreetmap.josm.plugins.Plugin;
     
    2424
    2525    public static void refreshMenu() {
    26         MainMenu menu = Main.main.menu;
     26        MainMenu menu = MainApplication.getMenu();
    2727
    2828        if (jMenu == null)
  • applications/editors/josm/plugins/public_transport/src/public_transport/RoutePatternAction.java

    r33737 r33764  
    326326                false);
    327327        putValue("toolbar", "publictransport/routepattern");
    328         Main.toolbar.register(this);
     328        MainApplication.getToolbar().register(this);
    329329    }
    330330
     
    11021102                return;
    11031103            box.enlargeBoundingBox();
    1104             Main.map.mapView.zoomTo(box);
     1104            MainApplication.getMap().mapView.zoomTo(box);
    11051105        } else if ("routePattern.itineraryMark".equals(event.getActionCommand())) {
    11061106            OsmPrimitive[] osmp = {null};
     
    13321332                return;
    13331333            box.enlargeBoundingBox();
    1334             Main.map.mapView.zoomTo(box);
     1334            MainApplication.getMap().mapView.zoomTo(box);
    13351335        } else if ("routePattern.stoplistMark".equals(event.getActionCommand())) {
    13361336            OsmPrimitive[] osmp = {null};
  • applications/editors/josm/plugins/public_transport/src/public_transport/StopImporterAction.java

    r33737 r33764  
    5858                false);
    5959        putValue("toolbar", "publictransport/stopimporter");
    60         Main.toolbar.register(this);
     60        MainApplication.getToolbar().register(this);
    6161    }
    6262
     
    319319            return;
    320320        box.enlargeBoundingBox();
    321         Main.map.mapView.zoomTo(box);
     321        MainApplication.getMap().mapView.zoomTo(box);
    322322    }
    323323
Note: See TracChangeset for help on using the changeset viewer.