Changeset 20003 in osm for applications/editors/josm/plugins/public_transport/src
- Timestamp:
- 2010-02-14T17:49:04+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/public_transport/src/public_transport/RoutePatternAction.java
r19987 r20003 208 208 if (e.getType() == TableModelEvent.UPDATE) 209 209 { 210 relation.setModified(true); 211 210 212 String key = (String)getValueAt(e.getFirstRow(), 0); 211 213 if (key == null) … … 480 482 private static JCheckBox cbLeft = null; 481 483 private static JTextField tfSuggestStopsLimit = null; 482 /* private static Vector< Relation > routes = new Vector< Relation >();*/483 484 private static Relation currentRoute = null; 484 485 private static Vector< RelationMember > markedWays = new Vector< RelationMember >(); … … 595 596 /*JComboBox*/ comboBox = new JComboBox(); 596 597 comboBox.addItem("bus"); 597 /*comboBox.addItem("tram");598 comboBox.addItem("tram"); 598 599 comboBox.addItem("light_rail"); 599 600 comboBox.addItem("subway"); 600 comboBox.addItem("rail"); */601 comboBox.addItem("rail"); 601 602 requiredTagsTable.setCellEditor(1, 1, new DefaultCellEditor(comboBox)); 602 603 rowContent = new Vector< String >(); … … 1695 1696 if (mainDataSet != null) 1696 1697 { 1698 String stopKey = ""; 1699 String stopValue = ""; 1700 if ("bus".equals(currentRoute.get("route"))) 1701 { 1702 stopKey = "highway"; 1703 stopValue = "bus_stop"; 1704 } 1705 else if ("tram".equals(currentRoute.get("route"))) 1706 { 1707 stopKey = "highway"; 1708 stopValue = "tram_stop"; 1709 } 1710 else if ("light_rail".equals(currentRoute.get("route"))) 1711 { 1712 stopKey = "railway"; 1713 stopValue = "station"; 1714 } 1715 else if ("subway".equals(currentRoute.get("route"))) 1716 { 1717 stopKey = "railway"; 1718 stopValue = "station"; 1719 } 1720 else if ("rail".equals(currentRoute.get("route"))) 1721 { 1722 stopKey = "railway"; 1723 stopValue = "station"; 1724 } 1725 1697 1726 Collection< Node > nodeCollection = mainDataSet.getNodes(); 1698 1727 Iterator< Node > nodeIter = nodeCollection.iterator(); … … 1700 1729 { 1701 1730 Node currentNode = nodeIter.next(); 1702 if ( "bus_stop".equals(currentNode.get("highway")))1731 if (stopValue.equals(currentNode.get(stopKey))) 1703 1732 { 1704 1733 StopReference sr = detectMinDistance
Note:
See TracChangeset
for help on using the changeset viewer.