Changeset 33764 in osm for applications/editors/josm
- Timestamp:
- 2017-11-04T18:09:15+01:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/public_transport
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/public_transport/build.xml
r33737 r33764 5 5 <property name="commit.message" value="Commit message"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="126 36"/>7 <property name="plugin.main.version" value="12643"/> 8 8 9 9 <property name="plugin.author" value="Roland M. Olbricht"/> -
applications/editors/josm/plugins/public_transport/src/public_transport/GTFSImporterAction.java
r33737 r33764 31 31 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 32 32 import org.openstreetmap.josm.gui.MainApplication; 33 import org.openstreetmap.josm.tools.Logging; 33 34 34 35 public class GTFSImporterAction extends JosmAction { … … 52 53 false); 53 54 putValue("toolbar", "publictransport/gtfsimporter"); 54 Main .toolbar.register(this);55 MainApplication.getToolbar().register(this); 55 56 } 56 57 … … 161 162 } 162 163 } catch (FileNotFoundException e) { 163 Main.error(e);164 Logging.error(e); 164 165 JOptionPane.showMessageDialog(null, tr("File \"{0}\" does not exist", file.getName())); 165 166 } catch (IOException e) { 166 Main.error(e);167 Logging.error(e); 167 168 JOptionPane.showMessageDialog(null, tr("IOException \"{0}\" occurred", e.toString())); 168 169 } … … 297 298 return; 298 299 box.enlargeBoundingBox(); 299 Main .map.mapView.zoomTo(box);300 MainApplication.getMap().mapView.zoomTo(box); 300 301 } 301 302 -
applications/editors/josm/plugins/public_transport/src/public_transport/PublicTransportPlugin.java
r33053 r33764 9 9 import javax.swing.JMenuItem; 10 10 11 import org.openstreetmap.josm. Main;11 import org.openstreetmap.josm.gui.MainApplication; 12 12 import org.openstreetmap.josm.gui.MainMenu; 13 13 import org.openstreetmap.josm.plugins.Plugin; … … 24 24 25 25 public static void refreshMenu() { 26 MainMenu menu = Main .main.menu;26 MainMenu menu = MainApplication.getMenu(); 27 27 28 28 if (jMenu == null) -
applications/editors/josm/plugins/public_transport/src/public_transport/RoutePatternAction.java
r33737 r33764 326 326 false); 327 327 putValue("toolbar", "publictransport/routepattern"); 328 Main .toolbar.register(this);328 MainApplication.getToolbar().register(this); 329 329 } 330 330 … … 1102 1102 return; 1103 1103 box.enlargeBoundingBox(); 1104 Main .map.mapView.zoomTo(box);1104 MainApplication.getMap().mapView.zoomTo(box); 1105 1105 } else if ("routePattern.itineraryMark".equals(event.getActionCommand())) { 1106 1106 OsmPrimitive[] osmp = {null}; … … 1332 1332 return; 1333 1333 box.enlargeBoundingBox(); 1334 Main .map.mapView.zoomTo(box);1334 MainApplication.getMap().mapView.zoomTo(box); 1335 1335 } else if ("routePattern.stoplistMark".equals(event.getActionCommand())) { 1336 1336 OsmPrimitive[] osmp = {null}; -
applications/editors/josm/plugins/public_transport/src/public_transport/StopImporterAction.java
r33737 r33764 58 58 false); 59 59 putValue("toolbar", "publictransport/stopimporter"); 60 Main .toolbar.register(this);60 MainApplication.getToolbar().register(this); 61 61 } 62 62 … … 319 319 return; 320 320 box.enlargeBoundingBox(); 321 Main .map.mapView.zoomTo(box);321 MainApplication.getMap().mapView.zoomTo(box); 322 322 } 323 323
Note:
See TracChangeset
for help on using the changeset viewer.