Changeset 31114 in osm for applications/editors/josm
- Timestamp:
- 2015-05-03T18:52:19+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ImportImagePlugin/build.xml
r30416 r31114 5 5 <property name="commit.message" value="use consistent plugin name (don't mix up the words)" /> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="7 001" />7 <property name="plugin.main.version" value="7817" /> 8 8 9 9 <property name="plugin.author" value="Christoph Beekmans, Fabian Kowitz, Anna Robaszkiewicz, Oliver Kuhn, Martin Ulitzny"/> -
applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/ImageLayer.java
r29531 r31114 305 305 BoundingXYVisitor boundingXYVisitor = new BoundingXYVisitor(); 306 306 visitBoundingBox(boundingXYVisitor); 307 Main.map.mapView. recalculateCenterScale(boundingXYVisitor);307 Main.map.mapView.zoomTo(boundingXYVisitor); 308 308 } 309 309 -
applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/ImportImageFileImporter.java
r29805 r31114 60 60 BoundingXYVisitor boundingXYVisitor = new BoundingXYVisitor(); 61 61 layer.visitBoundingBox(boundingXYVisitor); 62 Main.map.mapView. recalculateCenterScale(boundingXYVisitor);62 Main.map.mapView.zoomTo(boundingXYVisitor); 63 63 } 64 64 } -
applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/LoadImageAction.java
r29803 r31114 60 60 BoundingXYVisitor boundingXYVisitor = new BoundingXYVisitor(); 61 61 layer.visitBoundingBox(boundingXYVisitor); 62 Main.map.mapView. recalculateCenterScale(boundingXYVisitor);62 Main.map.mapView.zoomTo(boundingXYVisitor); 63 63 } 64 64 } -
applications/editors/josm/plugins/piclayer/build.xml
r30962 r31114 3 3 <property name="commit.message" value="[josm/PicLayer] - #10335 add interpolation hints for the image drawing"/> 4 4 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 5 <property name="plugin.main.version" value="7 001"/>5 <property name="plugin.main.version" value="7817"/> 6 6 7 7 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/actions/newlayer/NewLayerFromFileAction.java
r30737 r31114 172 172 BoundingXYVisitor v = new BoundingXYVisitor(); 173 173 layer.visitBoundingBox(v); 174 Main.map.mapView. recalculateCenterScale(v);174 Main.map.mapView.zoomTo(v); 175 175 } 176 176 } -
applications/editors/josm/plugins/public_transport/build.xml
r30664 r31114 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="7 575"/>7 <property name="plugin.main.version" value="7817"/> 8 8 9 9 <property name="plugin.author" value="Roland M. Olbricht"/> -
applications/editors/josm/plugins/public_transport/src/public_transport/GTFSImporterAction.java
r30701 r31114 67 67 } 68 68 69 public void actionPerformed(ActionEvent event) { 69 @Override 70 public void actionPerformed(ActionEvent event) { 70 71 71 72 if (dialog == null) … … 316 317 return; 317 318 box.enlargeBoundingBox(); 318 Main.map.mapView. recalculateCenterScale(box);319 Main.map.mapView.zoomTo(box); 319 320 } 320 321 … … 357 358 private class FocusAddAction extends AbstractAction 358 359 { 360 @Override 359 361 public void actionPerformed(ActionEvent e) 360 362 { -
applications/editors/josm/plugins/public_transport/src/public_transport/RoutePatternAction.java
r30532 r31114 64 64 } 65 65 66 @Override 66 67 public void valueChanged(ListSelectionEvent e) { 67 68 root.routesSelectionChanged(); … … 76 77 } 77 78 79 @Override 78 80 public int compareTo(RouteReference rr) { 79 81 if (route.get("route") != null) … … 124 126 } 125 127 128 @Override 126 129 public String toString() { 127 130 String buf = route.get("route"); … … 162 165 } 163 166 167 @Override 164 168 public boolean isCellEditable(int row, int column) { 165 169 if ((column == 0) && (hasFixedKeys)) … … 207 211 } 208 212 213 @Override 209 214 public void tableChanged(TableModelEvent e) 210 215 { … … 242 247 } 243 248 249 @Override 244 250 public TableCellEditor getCellEditor(int row, int column) { 245 251 TableCellEditor editor = null; … … 266 272 public Vector<Node> nodes = new Vector<Node>(); 267 273 274 @Override 268 275 public boolean isCellEditable(int row, int column) { 269 276 if (column != STOPLIST_ROLE_COLUMN) … … 272 279 } 273 280 281 @Override 274 282 public void addRow(Object[] obj) { 275 283 throw new UnsupportedOperationException(); 276 284 } 277 285 286 @Override 278 287 public void insertRow(int insPos, Object[] obj) { 279 288 throw new UnsupportedOperationException(); … … 323 332 324 333 private class StoplistTableModelListener implements TableModelListener { 334 @Override 325 335 public void tableChanged(TableModelEvent e) 326 336 { … … 383 393 } 384 394 395 @Override 385 396 public int compareTo(StopReference sr) { 386 397 if (this.index < sr.index) … … 426 437 } 427 438 428 public void actionPerformed(ActionEvent event) { 439 @Override 440 public void actionPerformed(ActionEvent event) { 429 441 Frame frame = JOptionPane.getFrameForComponent(Main.parent); 430 442 DataSet mainDataSet = Main.main.getCurrentDataSet(); … … 1078 1090 for (int i = 0; i < relsListModel.size(); ++i) 1079 1091 { 1080 if (currentRoute == ((RouteReference)relsListModel.elementAt(i)).route)1092 if (currentRoute == relsListModel.elementAt(i).route) 1081 1093 relsList.setSelectedIndex(i); 1082 1094 } … … 1093 1105 for (int i = 0; i < relsListModel.size(); ++i) 1094 1106 { 1095 if (currentRoute == ((RouteReference)relsListModel.elementAt(i)).route)1107 if (currentRoute == relsListModel.elementAt(i).route) 1096 1108 relsList.setSelectedIndex(i); 1097 1109 } … … 1151 1163 for (int i = 0; i < relsListModel.size(); ++i) 1152 1164 { 1153 if (currentRoute == ((RouteReference)relsListModel.elementAt(i)).route)1165 if (currentRoute == relsListModel.elementAt(i).route) 1154 1166 relsList.setSelectedIndex(i); 1155 1167 } … … 1231 1243 return; 1232 1244 box.enlargeBoundingBox(); 1233 Main.map.mapView. recalculateCenterScale(box);1245 Main.map.mapView.zoomTo(box); 1234 1246 } 1235 1247 else if ("routePattern.itineraryMark".equals(event.getActionCommand())) … … 1514 1526 return; 1515 1527 box.enlargeBoundingBox(); 1516 Main.map.mapView. recalculateCenterScale(box);1528 Main.map.mapView.zoomTo(box); 1517 1529 } 1518 1530 else if ("routePattern.stoplistMark".equals(event.getActionCommand())) … … 2064 2076 if (relsList.isSelectedIndex(selectedPos)) 2065 2077 { 2066 currentRoute = ((RouteReference)relsListModel.elementAt(selectedPos)).route;2078 currentRoute = relsListModel.elementAt(selectedPos).route; 2067 2079 tabbedPane.setEnabledAt(1, true); 2068 2080 tabbedPane.setEnabledAt(2, true); … … 2163 2175 if (!(way.isIncomplete())) 2164 2176 { 2165 if ("backward".equals(( String)(itineraryData.getValueAt(i, 1))))2177 if ("backward".equals((itineraryData.getValueAt(i, 1)))) 2166 2178 { 2167 2179 for (int j = way.getNodesCount()-2; j >= 0; --j) -
applications/editors/josm/plugins/public_transport/src/public_transport/StopImporterAction.java
r30532 r31114 74 74 } 75 75 76 public void actionPerformed(ActionEvent event) 76 @Override 77 public void actionPerformed(ActionEvent event) 77 78 { 78 79 if (dialog == null) … … 246 247 if (selectedPos >= 0) 247 248 { 248 currentTrack = ( (TrackReference)tracksListModel.elementAt(selectedPos));249 currentTrack = (tracksListModel.elementAt(selectedPos)); 249 250 dialog.setTrackValid(true); 250 251 … … 256 257 //Prepare Stoplist 257 258 dialog.setStoplistTableModel 258 ( ((TrackReference)tracksListModel.elementAt(selectedPos)).stoplistTM);259 (tracksListModel.elementAt(selectedPos).stoplistTM); 259 260 } 260 261 else … … 354 355 return; 355 356 box.enlargeBoundingBox(); 356 Main.map.mapView. recalculateCenterScale(box);357 Main.map.mapView.zoomTo(box); 357 358 } 358 359 … … 402 403 return new AbstractAction() 403 404 { 404 public void actionPerformed(ActionEvent e) 405 @Override 406 public void actionPerformed(ActionEvent e) 405 407 { 406 408 JTable table = dialog.getWaypointsTable(); … … 430 432 return new AbstractAction() 431 433 { 432 public void actionPerformed(ActionEvent e) 434 @Override 435 public void actionPerformed(ActionEvent e) 433 436 { 434 437 JTable table = dialog.getStoplistTable(); … … 446 449 private class FocusWaypointNameAction extends AbstractAction 447 450 { 451 @Override 448 452 public void actionPerformed(ActionEvent e) 449 453 { … … 476 480 } 477 481 482 @Override 478 483 public void actionPerformed(ActionEvent e) 479 484 { … … 499 504 private class FocusTrackStoplistNameAction extends AbstractAction 500 505 { 506 @Override 501 507 public void actionPerformed(ActionEvent e) 502 508 { … … 529 535 } 530 536 537 @Override 531 538 public void actionPerformed(ActionEvent e) 532 539 { -
applications/editors/josm/plugins/walkingpapers/build.xml
r30416 r31114 5 5 <property name="commit.message" value="Changed the constructor signature of the plugin main class"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="7 001"/>7 <property name="plugin.main.version" value="7817"/> 8 8 9 9 <property name="plugin.author" value="Frederik Ram"/> -
applications/editors/josm/plugins/walkingpapers/src/org/openstreetmap/josm/plugins/walkingpapers/WalkingPapersLayer.java
r30737 r31114 79 79 BoundingXYVisitor bbox = new BoundingXYVisitor(); 80 80 bbox.visit(printBounds); 81 Main.map.mapView. recalculateCenterScale(bbox);81 Main.map.mapView.zoomTo(bbox); 82 82 needRedraw = true; 83 83 } -
applications/editors/josm/plugins/wikipedia/build.xml
r31035 r31114 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="7 521"/>7 <property name="plugin.main.version" value="7817"/> 8 8 <property name="plugin.canloadatruntime" value="true"/> 9 9 -
applications/editors/josm/plugins/wikipedia/src/org/wikipedia/WikipediaToggleDialog.java
r30737 r31114 74 74 BoundingXYVisitor bbox = new BoundingXYVisitor(); 75 75 bbox.visit(entry.coordinate); 76 Main.map.mapView. recalculateCenterScale(bbox);76 Main.map.mapView.zoomTo(bbox); 77 77 } 78 78 SearchAction.search(entry.name.replaceAll("\\(.*\\)", ""), SearchAction.SearchMode.replace);
Note:
See TracChangeset
for help on using the changeset viewer.