Changeset 29859 in osm for applications/editors/josm/plugins
- Timestamp:
- 2013-08-21T11:09:21+02:00 (11 years ago)
- Location:
- applications/editors/josm/plugins
- Files:
-
- 3 added
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/buildings_tools/.project
r20245 r29859 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <projectDescription> 3 <name> buildings_tools</name>3 <name>JOSM-buildings_tools</name> 4 4 <comment></comment> 5 5 <projects> -
applications/editors/josm/plugins/dataimport/.project
r16176 r29859 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <projectDescription> 3 <name> dataimport</name>3 <name>JOSM-dataimport</name> 4 4 <comment></comment> 5 5 <projects> -
applications/editors/josm/plugins/download_along
- Property svn:ignore
-
old new 1 1 build 2 bin
-
- Property svn:ignore
-
applications/editors/josm/plugins/editgpx/.project
r26678 r29859 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <projectDescription> 3 <name> editgpx_svn</name>3 <name>JOSM-editgpx</name> 4 4 <comment></comment> 5 5 <projects> … … 19 19 <name>src-common</name> 20 20 <type>2</type> 21 <location> /Users/leo/dev/josm/core/src</location>21 <location>C:/Users/leo/dev/josm/core/src</location> 22 22 </link> 23 23 </linkedResources> -
applications/editors/josm/plugins/mapdust/.project
r24514 r29859 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <projectDescription> 3 <name> mapdust</name>3 <name>JOSM-mapdust</name> 4 4 <comment></comment> 5 5 <projects> -
applications/editors/josm/plugins/openstreetbugs/.project
r19283 r29859 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <projectDescription> 3 <name> openstreetbugs</name>3 <name>JOSM-openstreetbugs</name> 4 4 <comment></comment> 5 5 <projects> -
applications/editors/josm/plugins/public_transport/build.xml
r29854 r29859 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="616 2"/>7 <property name="plugin.main.version" value="6169"/> 8 8 9 9 <property name="plugin.author" value="Roland M. Olbricht"/> -
applications/editors/josm/plugins/public_transport/src/public_transport/RoutePatternAction.java
r29854 r29859 1702 1702 { 1703 1703 Vector< RelationMember > itemsToReflect = new Vector< RelationMember >(); 1704 Vector< Double > distancesToReflect = new Vector< Double >();1705 1704 int insPos = stoplistTable.getSelectedRow(); 1706 1705 -
applications/editors/josm/plugins/public_transport/src/public_transport/StopImporterAction.java
r29854 r29859 29 29 import org.openstreetmap.josm.data.gpx.GpxTrack; 30 30 import org.openstreetmap.josm.data.gpx.WayPoint; 31 import org.openstreetmap.josm.data.osm.DataSet;32 31 import org.openstreetmap.josm.data.osm.Node; 33 32 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 77 76 public void actionPerformed(ActionEvent event) 78 77 { 79 DataSet mainDataSet = Main.main.getCurrentDataSet();80 81 78 if (dialog == null) 82 79 dialog = new StopImporterDialog(this); -
applications/editors/josm/plugins/public_transport/src/public_transport/StopImporterDialog.java
r29854 r29859 676 676 public static double parseTime(String s) 677 677 { 678 double result = 0;679 678 if ((s.charAt(2) != ':') || (s.charAt(2) != ':') 680 679 || (s.length() < 8)) -
applications/editors/josm/plugins/public_transport/src/public_transport/TrackStoplistNameCommand.java
r29854 r29859 10 10 import org.openstreetmap.josm.data.osm.OsmPrimitive; 11 11 12 public class TrackStoplistNameCommand extends Command 13 { 14 private int workingLine = 0; 15 private TrackReference trackref = null; 16 private String oldName = null; 17 private String name = null; 18 private String oldTime = null; 19 private String time = null; 20 private String oldShelter = null; 21 private TransText shelter = null; 22 private LatLon oldLatLon = null; 12 public class TrackStoplistNameCommand extends Command { 13 private int workingLine = 0; 14 private TrackReference trackref = null; 15 private String oldName = null; 16 private String name = null; 17 private String oldTime = null; 18 private String time = null; 19 private String oldShelter = null; 20 private TransText shelter = null; 21 private LatLon oldLatLon = null; 23 22 24 public TrackStoplistNameCommand(TrackReference trackref, int workingLine) 25 { 26 this.trackref = trackref; 27 this.workingLine = workingLine; 28 Node node = trackref.stoplistTM.nodeAt(workingLine); 29 if (node != null) 30 { 31 oldName = node.get("name"); 32 oldTime = trackref.stoplistTM.timeAt(workingLine); 33 oldShelter = node.get("shelter"); 34 oldLatLon = (LatLon)node.getCoor().clone(); 35 } 36 this.time = (String)trackref.stoplistTM.getValueAt(workingLine, 0); 37 this.name = (String)trackref.stoplistTM.getValueAt(workingLine, 1); 38 this.shelter = (TransText)trackref.stoplistTM.getValueAt(workingLine, 2); 39 if ("".equals(this.shelter.text)) 40 this.shelter = null; 41 } 23 public TrackStoplistNameCommand(TrackReference trackref, int workingLine) { 24 this.trackref = trackref; 25 this.workingLine = workingLine; 26 Node node = trackref.stoplistTM.nodeAt(workingLine); 27 if (node != null) { 28 oldName = node.get("name"); 29 oldTime = trackref.stoplistTM.timeAt(workingLine); 30 oldShelter = node.get("shelter"); 31 try { 32 oldLatLon = node.getCoor().clone(); 33 } catch (CloneNotSupportedException e) { 34 e.printStackTrace(); 35 } 36 } 37 this.time = (String) trackref.stoplistTM.getValueAt(workingLine, 0); 38 this.name = (String) trackref.stoplistTM.getValueAt(workingLine, 1); 39 this.shelter = (TransText) trackref.stoplistTM.getValueAt(workingLine, 2); 40 if ("".equals(this.shelter.text)) 41 this.shelter = null; 42 } 42 43 43 public boolean executeCommand() 44 { 45 Node node = trackref.stoplistTM.nodeAt(workingLine); 46 if (node != null) 47 { 48 node.put("name", name); 49 node.put("shelter", shelter.text); 50 double dTime = StopImporterDialog.parseTime(time); 51 node.setCoor(trackref.computeCoor(dTime)); 52 } 53 trackref.inEvent = true; 54 if (time == null) 55 trackref.stoplistTM.setValueAt("", workingLine, 0); 56 else 57 trackref.stoplistTM.setValueAt(time, workingLine, 0); 58 if (name == null) 59 trackref.stoplistTM.setValueAt("", workingLine, 1); 60 else 61 trackref.stoplistTM.setValueAt(name, workingLine, 1); 62 trackref.stoplistTM.setValueAt(shelter, workingLine, 2); 63 trackref.inEvent = false; 64 return true; 65 } 44 public boolean executeCommand() { 45 Node node = trackref.stoplistTM.nodeAt(workingLine); 46 if (node != null) { 47 node.put("name", name); 48 node.put("shelter", shelter.text); 49 double dTime = StopImporterDialog.parseTime(time); 50 node.setCoor(trackref.computeCoor(dTime)); 51 } 52 trackref.inEvent = true; 53 if (time == null) 54 trackref.stoplistTM.setValueAt("", workingLine, 0); 55 else 56 trackref.stoplistTM.setValueAt(time, workingLine, 0); 57 if (name == null) 58 trackref.stoplistTM.setValueAt("", workingLine, 1); 59 else 60 trackref.stoplistTM.setValueAt(name, workingLine, 1); 61 trackref.stoplistTM.setValueAt(shelter, workingLine, 2); 62 trackref.inEvent = false; 63 return true; 64 } 66 65 67 public void undoCommand() 68 { 69 Node node = trackref.stoplistTM.nodeAt(workingLine); 70 if (node != null) 71 { 72 node.put("name", oldName); 73 node.put("shelter", oldShelter); 74 node.setCoor(oldLatLon); 75 } 76 trackref.inEvent = true; 77 if (oldTime == null) 78 trackref.stoplistTM.setValueAt("", workingLine, 0); 79 else 80 trackref.stoplistTM.setValueAt(oldTime, workingLine, 0); 81 if (oldName == null) 82 trackref.stoplistTM.setValueAt("", workingLine, 1); 83 else 84 trackref.stoplistTM.setValueAt(oldName, workingLine, 1); 85 trackref.stoplistTM.setValueAt(new TransText(oldShelter), workingLine, 2); 86 trackref.inEvent = false; 87 } 66 public void undoCommand() { 67 Node node = trackref.stoplistTM.nodeAt(workingLine); 68 if (node != null) { 69 node.put("name", oldName); 70 node.put("shelter", oldShelter); 71 node.setCoor(oldLatLon); 72 } 73 trackref.inEvent = true; 74 if (oldTime == null) 75 trackref.stoplistTM.setValueAt("", workingLine, 0); 76 else 77 trackref.stoplistTM.setValueAt(oldTime, workingLine, 0); 78 if (oldName == null) 79 trackref.stoplistTM.setValueAt("", workingLine, 1); 80 else 81 trackref.stoplistTM.setValueAt(oldName, workingLine, 1); 82 trackref.stoplistTM.setValueAt(new TransText(oldShelter), workingLine, 2); 83 trackref.inEvent = false; 84 } 88 85 89 public void fillModifiedData 90 (Collection< OsmPrimitive > modified, Collection< OsmPrimitive > deleted, 91 Collection< OsmPrimitive > added) 92 { 93 } 86 public void fillModifiedData(Collection<OsmPrimitive> modified, Collection<OsmPrimitive> deleted, 87 Collection<OsmPrimitive> added) { 88 } 94 89 95 @Override public String getDescriptionText() 96 97 98 90 @Override 91 public String getDescriptionText() { 92 return tr("Public Transport: Edit track stop list"); 93 } 99 94 }; -
applications/editors/josm/plugins/turnlanes/.project
r26195 r29859 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <projectDescription> 3 <name> turnlanes</name>3 <name>JOSM-turnlanes</name> 4 4 <comment></comment> 5 5 <projects> -
applications/editors/josm/plugins/turnrestrictions/.classpath
r29853 r29859 8 8 <classpathentry kind="lib" path="test/config"/> 9 9 <classpathentry combineaccessrules="false" kind="src" path="/JOSM"/> 10 <classpathentry exported="true" kind="con" path="GROOVY_DSL_SUPPORT"/> 10 11 <classpathentry kind="output" path="build"/> 11 12 </classpath> -
applications/editors/josm/plugins/videomapping/.settings/org.eclipse.core.resources.prefs
r29536 r29859 5 5 encoding//uml/refactoring.uml=UTF-8 6 6 encoding//uml/refactoring.umlclass=UTF-8 7 encoding/src=UTF-8 -
applications/editors/josm/plugins/waypoint_search/.project
r22660 r29859 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <projectDescription> 3 <name> waypoint_search</name>3 <name>JOSM-waypoint_search</name> 4 4 <comment></comment> 5 5 <projects>
Note:
See TracChangeset
for help on using the changeset viewer.