Index: applications/editors/josm/plugins/tcxplugin/src/org/openstreetmap/josm/io/TcxReader.java
===================================================================
--- applications/editors/josm/plugins/tcxplugin/src/org/openstreetmap/josm/io/TcxReader.java	(revision 12588)
+++ applications/editors/josm/plugins/tcxplugin/src/org/openstreetmap/josm/io/TcxReader.java	(revision 12778)
@@ -47,136 +47,136 @@
 public class TcxReader {
 
-	private File tcxFile;
+    private File tcxFile;
 
-	private GpxData gpxData;
+    private GpxData gpxData;
 
-	/**
-	 * @param tcxFile
-	 */
-	public TcxReader(File tcxFile) {
-		super();
-		this.tcxFile = tcxFile;
-		parseFile();
-	}
+    /**
+     * @param tcxFile
+     */
+    public TcxReader(File tcxFile) {
+        super();
+        this.tcxFile = tcxFile;
+        parseFile();
+    }
 
-	/**
-	 * 
-	 */
-	@SuppressWarnings("unchecked") private void parseFile() {
-		try {
-			JAXBContext jc = JAXBContext
-			        .newInstance(TrainingCenterDatabaseT.class);
-			Unmarshaller unmarshaller = jc.createUnmarshaller();
-			JAXBElement<TrainingCenterDatabaseT> element = (JAXBElement<TrainingCenterDatabaseT>)unmarshaller
-			        .unmarshal(tcxFile);
+    /**
+     * 
+     */
+    @SuppressWarnings("unchecked") private void parseFile() {
+        try {
+            JAXBContext jc = JAXBContext
+                    .newInstance(TrainingCenterDatabaseT.class);
+            Unmarshaller unmarshaller = jc.createUnmarshaller();
+            JAXBElement<TrainingCenterDatabaseT> element = (JAXBElement<TrainingCenterDatabaseT>)unmarshaller
+                    .unmarshal(tcxFile);
 
-			TrainingCenterDatabaseT tcd = element.getValue();
+            TrainingCenterDatabaseT tcd = element.getValue();
 
-			gpxData = new GpxData();
+            gpxData = new GpxData();
 
-			// Usually logged activities are in the activities tag.
-			parseDataFromActivities(tcd);
-			// GPS tracks in the course tag are generated by the user.
-			// Maybe not a good idea to import them.
-			parseDataFromCourses(tcd);
+            // Usually logged activities are in the activities tag.
+            parseDataFromActivities(tcd);
+            // GPS tracks in the course tag are generated by the user.
+            // Maybe not a good idea to import them.
+            parseDataFromCourses(tcd);
 
-		} catch (JAXBException e) {
-			throw new RuntimeException(e);
-		}
-	}
+        } catch (JAXBException e) {
+            throw new RuntimeException(e);
+        }
+    }
 
-	/**
-	 * @param tcd
-	 */
-	private void parseDataFromActivities(TrainingCenterDatabaseT tcd) {
-		if ((tcd.getActivities() != null)
-		        && (tcd.getActivities().getActivity() != null)) {
-			for (ActivityT activity : tcd.getActivities().getActivity()) {
-				if (activity.getLap() != null) {
-					for (ActivityLapT activityLap : activity.getLap()) {
-						if (activityLap.getTrack() != null) {
-							GpxTrack currentTrack = new GpxTrack();
-							gpxData.tracks.add(currentTrack);
-							for (TrackT track : activityLap.getTrack()) {
-								if (track.getTrackpoint() != null) {
-									Collection<WayPoint> currentTrackSeg = new ArrayList<WayPoint>();
-									currentTrack.trackSegs.add(currentTrackSeg);
-									for (TrackpointT trackpoint : track
-									        .getTrackpoint()) {
-										// Some trackspoints don't have a
-										// position.
-										// Check it
-										// first to avoid an NPE!
-										if (trackpoint.getPosition() != null) {
-											LatLon latLon = new LatLon(
-											        trackpoint
-											                .getPosition()
-											                .getLatitudeDegrees(),
-											        trackpoint
-											                .getPosition()
-											                .getLongitudeDegrees());
-											WayPoint currentWayPoint = new WayPoint(
-											        latLon);
-											// We usually have altitude info
-											// here
-											// (trackpoint.getAltitudeMeters())
-											// Don't know how to add it to
-											// the GPX
-											// Data...
-											currentTrackSeg
-											        .add(currentWayPoint);
-										}
-									}
-								}
-							}
-						}
-					}
-				}
-			}
-		}
-	}
+    /**
+     * @param tcd
+     */
+    private void parseDataFromActivities(TrainingCenterDatabaseT tcd) {
+        if ((tcd.getActivities() != null)
+                && (tcd.getActivities().getActivity() != null)) {
+            for (ActivityT activity : tcd.getActivities().getActivity()) {
+                if (activity.getLap() != null) {
+                    for (ActivityLapT activityLap : activity.getLap()) {
+                        if (activityLap.getTrack() != null) {
+                            GpxTrack currentTrack = new GpxTrack();
+                            gpxData.tracks.add(currentTrack);
+                            for (TrackT track : activityLap.getTrack()) {
+                                if (track.getTrackpoint() != null) {
+                                    Collection<WayPoint> currentTrackSeg = new ArrayList<WayPoint>();
+                                    currentTrack.trackSegs.add(currentTrackSeg);
+                                    for (TrackpointT trackpoint : track
+                                            .getTrackpoint()) {
+                                        // Some trackspoints don't have a
+                                        // position.
+                                        // Check it
+                                        // first to avoid an NPE!
+                                        if (trackpoint.getPosition() != null) {
+                                            LatLon latLon = new LatLon(
+                                                    trackpoint
+                                                            .getPosition()
+                                                            .getLatitudeDegrees(),
+                                                    trackpoint
+                                                            .getPosition()
+                                                            .getLongitudeDegrees());
+                                            WayPoint currentWayPoint = new WayPoint(
+                                                    latLon);
+                                            // We usually have altitude info
+                                            // here
+                                            // (trackpoint.getAltitudeMeters())
+                                            // Don't know how to add it to
+                                            // the GPX
+                                            // Data...
+                                            currentTrackSeg
+                                                    .add(currentWayPoint);
+                                        }
+                                    }
+                                }
+                            }
+                        }
+                    }
+                }
+            }
+        }
+    }
 
-	/**
-	 * @param tcd
-	 */
-	private void parseDataFromCourses(TrainingCenterDatabaseT tcd) {
-		if ((tcd.getCourses() != null)
-		        && (tcd.getCourses().getCourse() != null)) {
-			for (CourseT course : tcd.getCourses().getCourse()) {
-				if (course.getTrack() != null) {
-					GpxTrack currentTrack = new GpxTrack();
-					gpxData.tracks.add(currentTrack);
-					for (TrackT track : course.getTrack()) {
-						if (track.getTrackpoint() != null) {
-							Collection<WayPoint> currentTrackSeg = new ArrayList<WayPoint>();
-							currentTrack.trackSegs.add(currentTrackSeg);
-							for (TrackpointT trackpoint : track.getTrackpoint()) {
-								// Some trackspoints don't have a position.
-								// Check it
-								// first to avoid an NPE!
-								if (trackpoint.getPosition() != null) {
-									LatLon latLon = new LatLon(
-									        trackpoint.getPosition()
-									                .getLatitudeDegrees(),
-									        trackpoint.getPosition()
-									                .getLongitudeDegrees());
-									WayPoint currentWayPoint = new WayPoint(
-									        latLon);
-									// We usually have altitude info here
-									// (trackpoint.getAltitudeMeters())
-									// Don't know how to add it to the GPX
-									// Data...
-									currentTrackSeg.add(currentWayPoint);
-								}
-							}
-						}
-					}
-				}
-			}
-		}
-	}
+    /**
+     * @param tcd
+     */
+    private void parseDataFromCourses(TrainingCenterDatabaseT tcd) {
+        if ((tcd.getCourses() != null)
+                && (tcd.getCourses().getCourse() != null)) {
+            for (CourseT course : tcd.getCourses().getCourse()) {
+                if (course.getTrack() != null) {
+                    GpxTrack currentTrack = new GpxTrack();
+                    gpxData.tracks.add(currentTrack);
+                    for (TrackT track : course.getTrack()) {
+                        if (track.getTrackpoint() != null) {
+                            Collection<WayPoint> currentTrackSeg = new ArrayList<WayPoint>();
+                            currentTrack.trackSegs.add(currentTrackSeg);
+                            for (TrackpointT trackpoint : track.getTrackpoint()) {
+                                // Some trackspoints don't have a position.
+                                // Check it
+                                // first to avoid an NPE!
+                                if (trackpoint.getPosition() != null) {
+                                    LatLon latLon = new LatLon(
+                                            trackpoint.getPosition()
+                                                    .getLatitudeDegrees(),
+                                            trackpoint.getPosition()
+                                                    .getLongitudeDegrees());
+                                    WayPoint currentWayPoint = new WayPoint(
+                                            latLon);
+                                    // We usually have altitude info here
+                                    // (trackpoint.getAltitudeMeters())
+                                    // Don't know how to add it to the GPX
+                                    // Data...
+                                    currentTrackSeg.add(currentWayPoint);
+                                }
+                            }
+                        }
+                    }
+                }
+            }
+        }
+    }
 
-	public GpxData getGpxData() {
-		return gpxData;
-	}
+    public GpxData getGpxData() {
+        return gpxData;
+    }
 }
