Index: trunk/src/org/openstreetmap/josm/actions/AboutAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/AboutAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/AboutAction.java	(revision 6069)
@@ -100,5 +100,5 @@
         panel.setPreferredSize(new Dimension(600, 300));
         panel.add(about, GBC.std().fill());
-        
+
         GuiHelper.prepareResizeableOptionPane(panel, panel.getPreferredSize());
         JOptionPane.showMessageDialog(Main.parent, panel, tr("About JOSM..."),
Index: trunk/src/org/openstreetmap/josm/actions/AddImageryLayerAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/AddImageryLayerAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/AddImageryLayerAction.java	(revision 6069)
@@ -113,5 +113,5 @@
         return null;
     }
-    
+
     protected boolean isLayerAlreadyPresent() {
         if (Main.isDisplayingMapView()) {
Index: trunk/src/org/openstreetmap/josm/actions/AddNodeAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/AddNodeAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/AddNodeAction.java	(revision 6069)
@@ -44,5 +44,5 @@
 
         dialog.showDialog();
-        
+
         if (dialog.getValue() != 1)
             return;
Index: trunk/src/org/openstreetmap/josm/actions/AlignInCircleAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/AlignInCircleAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/AlignInCircleAction.java	(revision 6069)
@@ -240,5 +240,5 @@
         setEnabled(selection != null && !selection.isEmpty());
     }
-    
+
     /**
      * Determines if a regular polygon is allowed to be created with the given nodes collection.
Index: trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java	(revision 6069)
@@ -47,5 +47,5 @@
         marktr("previous"),
         marktr("next")};
-    
+
     private final String mode;
 
@@ -123,5 +123,5 @@
     public AutoScaleAction(final String mode) {
         super(tr("Zoom to {0}", tr(mode)), "dialogs/autoscale/" + mode, tr("Zoom the view to {0}.", tr(mode)),
-                Shortcut.registerShortcut("view:zoom"+mode, tr("View: {0}", tr("Zoom to {0}", tr(mode))), getModeShortcut(mode), Shortcut.DIRECT), 
+                Shortcut.registerShortcut("view:zoom"+mode, tr("View: {0}", tr("Zoom to {0}", tr(mode))), getModeShortcut(mode), Shortcut.DIRECT),
                 true, null, false);
         String modeHelp = Character.toUpperCase(mode.charAt(0)) + mode.substring(1);
Index: trunk/src/org/openstreetmap/josm/actions/CopyAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/CopyAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/CopyAction.java	(revision 6069)
@@ -19,5 +19,5 @@
 
 /**
- * Copy OSM primitives to clipboard in order to paste them, or their tags, somewhere else.  
+ * Copy OSM primitives to clipboard in order to paste them, or their tags, somewhere else.
  * @since 404
  */
Index: trunk/src/org/openstreetmap/josm/actions/CreateMultipolygonAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/CreateMultipolygonAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/CreateMultipolygonAction.java	(revision 6069)
@@ -130,5 +130,5 @@
     }
 
-    /** 
+    /**
       * Enable this action only if something is selected
       *
@@ -185,5 +185,5 @@
     /**
      * This method removes tags/value pairs from inner and outer ways and put them on relation if necessary
-     * Function was extended in reltoolbox plugin by Zverikk and copied back to the core 
+     * Function was extended in reltoolbox plugin by Zverikk and copied back to the core
      * @param relation the multipolygon style relation to process
      * @return a list of commands to execute
@@ -212,5 +212,5 @@
                 Way way = m.getWay();
                 outerWays.add(way);
-                
+
                 for( String key : way.keySet() ) {
                     if( !values.containsKey(key) ) { //relation values take precedence
Index: trunk/src/org/openstreetmap/josm/actions/DialogsToggleAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/DialogsToggleAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/DialogsToggleAction.java	(revision 6069)
@@ -17,5 +17,5 @@
 
 /*
-* Action that hides or shows toggle dialogs panel and other panels 
+* Action that hides or shows toggle dialogs panel and other panels
 * to free more space for drawing (GIMP-like)
 * @author cmuelle8
Index: trunk/src/org/openstreetmap/josm/actions/DiskAccessAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/DiskAccessAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/DiskAccessAction.java	(revision 6069)
@@ -18,5 +18,5 @@
     /**
      * Constructs a new {@code DiskAccessAction}.
-     * 
+     *
      * @param name The action's text as displayed on the menu (if it is added to a menu)
      * @param iconName The filename of the icon to use
@@ -47,5 +47,5 @@
     /**
      * Creates a new {@link JFileChooser} and makes it visible.
-     * @param open If true, pops up an "Open File" dialog. If false, pops up a "Save File" dialog 
+     * @param open If true, pops up an "Open File" dialog. If false, pops up a "Save File" dialog
      * @param multiple If true, makes the dialog allow multiple file selections
      * @param title The string that goes in the dialog window's title bar
@@ -59,5 +59,5 @@
     /**
      * Creates a new {@link JFileChooser} and makes it visible.
-     * @param open If true, pops up an "Open File" dialog. If false, pops up a "Save File" dialog 
+     * @param open If true, pops up an "Open File" dialog. If false, pops up a "Save File" dialog
      * @param multiple If true, makes the dialog allow multiple file selections
      * @param title The string that goes in the dialog window's title bar
@@ -72,15 +72,15 @@
     /**
      * Creates a new {@link JFileChooser} and makes it visible.
-     * @param open If true, pops up an "Open File" dialog. If false, pops up a "Save File" dialog 
+     * @param open If true, pops up an "Open File" dialog. If false, pops up a "Save File" dialog
      * @param multiple If true, makes the dialog allow multiple file selections
      * @param title The string that goes in the dialog window's title bar
      * @param extension The file extension that will be selected as the default file filter
      * @param selectionMode The selection mode that allows the user to:<br/>
-     *                      <li>just select files ({@code JFileChooser.FILES_ONLY})</li> 
-     *                      <li>just select directories ({@code JFileChooser.DIRECTORIES_ONLY})</li> 
+     *                      <li>just select files ({@code JFileChooser.FILES_ONLY})</li>
+     *                      <li>just select directories ({@code JFileChooser.DIRECTORIES_ONLY})</li>
      *                      <li>select both files and directories ({@code JFileChooser.FILES_AND_DIRECTORIES})</li>
-     * @param allTypes If true, all the files types known by JOSM will be proposed in the "file type" combobox. 
+     * @param allTypes If true, all the files types known by JOSM will be proposed in the "file type" combobox.
      *                 If false, only the file filters that include {@code extension} will be proposed
-     * @param lastDirProperty The name of the property used to setup the JFileChooser initial directory. 
+     * @param lastDirProperty The name of the property used to setup the JFileChooser initial directory.
      *        This property will then be updated to the new "last directory" chosen by the user. If null, the default property "lastDirectory" will be used.
      * @return The {@code JFileChooser}.
@@ -93,11 +93,11 @@
     /**
      * Creates a new {@link JFileChooser} for a single {@link FileFilter} and makes it visible.
-     * @param open If true, pops up an "Open File" dialog. If false, pops up a "Save File" dialog 
+     * @param open If true, pops up an "Open File" dialog. If false, pops up a "Save File" dialog
      * @param multiple If true, makes the dialog allow multiple file selections
      * @param title The string that goes in the dialog window's title bar
      * @param filter The only file filter that will be proposed by the dialog
      * @param selectionMode The selection mode that allows the user to:<br/>
-     *                      <li>just select files ({@code JFileChooser.FILES_ONLY})</li> 
-     *                      <li>just select directories ({@code JFileChooser.DIRECTORIES_ONLY})</li> 
+     *                      <li>just select files ({@code JFileChooser.FILES_ONLY})</li>
+     *                      <li>just select directories ({@code JFileChooser.DIRECTORIES_ONLY})</li>
      *                      <li>select both files and directories ({@code JFileChooser.FILES_AND_DIRECTORIES})</li>
      * @param lastDirProperty The name of the property used to setup the JFileChooser initial directory. This property will then be updated to the new "last directory" chosen by the user
@@ -111,5 +111,5 @@
     /**
      * Creates a new {@link JFileChooser} for several {@link FileFilter}s and makes it visible.
-     * @param open If true, pops up an "Open File" dialog. If false, pops up a "Save File" dialog 
+     * @param open If true, pops up an "Open File" dialog. If false, pops up a "Save File" dialog
      * @param multiple If true, makes the dialog allow multiple file selections
      * @param title The string that goes in the dialog window's title bar
@@ -117,6 +117,6 @@
      * @param defaultFilter The file filter that will be selected by default
      * @param selectionMode The selection mode that allows the user to:<br/>
-     *                      <li>just select files ({@code JFileChooser.FILES_ONLY})</li> 
-     *                      <li>just select directories ({@code JFileChooser.DIRECTORIES_ONLY})</li> 
+     *                      <li>just select files ({@code JFileChooser.FILES_ONLY})</li>
+     *                      <li>just select directories ({@code JFileChooser.DIRECTORIES_ONLY})</li>
      *                      <li>select both files and directories ({@code JFileChooser.FILES_AND_DIRECTORIES})</li>
      * @param lastDirProperty The name of the property used to setup the JFileChooser initial directory. This property will then be updated to the new "last directory" chosen by the user
@@ -124,5 +124,5 @@
      * @since 5438
      */
-    public static JFileChooser createAndOpenFileChooser(boolean open, boolean multiple, String title, 
+    public static JFileChooser createAndOpenFileChooser(boolean open, boolean multiple, String title,
             Collection<? extends FileFilter> filters, FileFilter defaultFilter, int selectionMode, String lastDirProperty) {
         return new JFileChooserManager(open, lastDirProperty).createFileChooser(multiple, title, filters, defaultFilter, selectionMode).openFileChooser();
Index: trunk/src/org/openstreetmap/josm/actions/DistributeAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/DistributeAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/DistributeAction.java	(revision 6069)
@@ -40,5 +40,5 @@
         putValue("help", ht("/Action/DistributeNodes"));
     }
-    
+
     /**
      * The general algorithm here is to find the two selected nodes
@@ -66,5 +66,5 @@
                 }
         }
-        
+
         Set<Node> ignoredNodes = removeNodesWithoutCoordinates(nodes);
         ignoredNodes.addAll(removeNodesWithoutCoordinates(itnodes));
@@ -149,5 +149,5 @@
         Main.map.repaint();
     }
-    
+
     private Set<Node> removeNodesWithoutCoordinates(Collection<Node> col) {
         Set<Node> result = new HashSet<Node>();
Index: trunk/src/org/openstreetmap/josm/actions/ExtensionFileFilter.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/ExtensionFileFilter.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/ExtensionFileFilter.java	(revision 6069)
@@ -109,5 +109,5 @@
      * support new file extensions. The old AllFormatsImporter doesn’t include the new
      * extensions and thus will not display these files.
-     * 
+     *
      * @since 5131
      */
@@ -196,5 +196,5 @@
      * @param fileChooser the file chooser
      * @param extension the default extension
-     * @param allTypes If true, all the files types known by JOSM will be proposed in the "file type" combobox. 
+     * @param allTypes If true, all the files types known by JOSM will be proposed in the "file type" combobox.
      *                 If false, only the file filters that include {@code extension} will be proposed
      * @since 5438
@@ -215,5 +215,5 @@
      * @param fileChooser the file chooser
      * @param extension the default extension
-     * @param allTypes If true, all the files types known by JOSM will be proposed in the "file type" combobox. 
+     * @param allTypes If true, all the files types known by JOSM will be proposed in the "file type" combobox.
      *                 If false, only the file filters that include {@code extension} will be proposed
      * @since 5438
@@ -268,5 +268,5 @@
 
     /**
-     * Replies the comma-separated list of file extensions of this file filter. 
+     * Replies the comma-separated list of file extensions of this file filter.
      * @return the comma-separated list of file extensions of this file filter, as a String
      * @since 5131
Index: trunk/src/org/openstreetmap/josm/actions/FollowLineAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/FollowLineAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/FollowLineAction.java	(revision 6069)
@@ -63,10 +63,10 @@
             return;
         if (!(Main.map.mapMode instanceof DrawAction)) return; // We are not on draw mode
-        
+
         Collection<Node> selectedPoints = osmLayer.data.getSelectedNodes();
         Collection<Way> selectedLines = osmLayer.data.getSelectedWays();
         if ((selectedPoints.size() > 1) || (selectedLines.size() != 1)) // Unsuitable selection
             return;
-        
+
         Node last = ((DrawAction) Main.map.mapMode).getCurrentBaseNode();
         if (last == null)
@@ -83,6 +83,6 @@
         List<OsmPrimitive> referrers = last.getReferrers();
         if (referrers.size() < 2) return; // There's nothing to follow
-        
-        Node newPoint = null;        
+
+        Node newPoint = null;
         Iterator<OsmPrimitive> i = referrers.iterator();
         while (i.hasNext()) {
@@ -119,6 +119,6 @@
             osmLayer.data.addSelected(newFollower);
             osmLayer.data.addSelected(newPoint);
-            // "viewport following" mode for tracing long features 
-            // from aerial imagery or GPS tracks. 
+            // "viewport following" mode for tracing long features
+            // from aerial imagery or GPS tracks.
             if (Main.map.mapView.viewportFollowing) {
                 Main.map.mapView.smoothScrollTo(newPoint.getEastNorth());
Index: trunk/src/org/openstreetmap/josm/actions/Map_Rectifier_WMSmenuAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/Map_Rectifier_WMSmenuAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/Map_Rectifier_WMSmenuAction.java	(revision 6069)
@@ -39,5 +39,5 @@
         private final Pattern idValidator;
         public JRadioButton btn;
-        
+
         /**
          * @param name Name of the rectifing service
Index: trunk/src/org/openstreetmap/josm/actions/MergeLayerAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/MergeLayerAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/MergeLayerAction.java	(revision 6069)
@@ -57,5 +57,5 @@
         });
     }
-    
+
     public void merge(List<Layer> sourceLayers) {
         doMerge(sourceLayers, sourceLayers);
@@ -93,5 +93,5 @@
         });
     }
-    
+
     /**
      * returns true if the user wants to cancel, false if they want to continue
Index: trunk/src/org/openstreetmap/josm/actions/MergeSelectionAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/MergeSelectionAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/MergeSelectionAction.java	(revision 6069)
@@ -39,5 +39,5 @@
         if (targetLayer == null)
             return;
-        if (getEditLayer().isUploadDiscouraged() && targetLayer instanceof OsmDataLayer && !((OsmDataLayer)targetLayer).isUploadDiscouraged() 
+        if (getEditLayer().isUploadDiscouraged() && targetLayer instanceof OsmDataLayer && !((OsmDataLayer)targetLayer).isUploadDiscouraged()
                 && getEditLayer().data.getAllSelected().size() > 1) {
             if (warnMergingUploadDiscouragedObjects(targetLayer)) {
@@ -68,5 +68,5 @@
         setEnabled(selection != null && !selection.isEmpty());
     }
-    
+
     /**
      * returns true if the user wants to cancel, false if they want to continue
Index: trunk/src/org/openstreetmap/josm/actions/MoveAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/MoveAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/MoveAction.java	(revision 6069)
@@ -115,5 +115,5 @@
         ? Main.main.undoRedo.commands.getLast() : null;
 
-        getCurrentDataSet().beginUpdate(); 
+        getCurrentDataSet().beginUpdate();
         if (c instanceof MoveCommand && affectedNodes.equals(((MoveCommand)c).getParticipatingPrimitives())) {
             ((MoveCommand)c).moveAgain(distx, disty);
@@ -122,6 +122,6 @@
                     c = new MoveCommand(selection, distx, disty));
         }
-        getCurrentDataSet().endUpdate(); 
-        
+        getCurrentDataSet().endUpdate();
+
         for (Node n : affectedNodes) {
             if (n.getCoor().isOutSideWorld()) {
Index: trunk/src/org/openstreetmap/josm/actions/OpenFileAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/OpenFileAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/OpenFileAction.java	(revision 6069)
@@ -287,5 +287,5 @@
                     }
                 }
-                
+
                 for (File urlFile: urlFiles) {
                     try {
Index: trunk/src/org/openstreetmap/josm/actions/OpenLocationAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/OpenLocationAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/OpenLocationAction.java	(revision 6069)
@@ -46,5 +46,5 @@
 
     protected final List<Class<? extends DownloadTask>> downloadTasks;
-    
+
     /**
      * Create an open action. The name is "Open a file".
@@ -123,5 +123,5 @@
         openUrl(layer.isSelected(), Utils.strip(uploadAddresses.getText()));
     }
-    
+
     /**
      * Replies the list of download tasks accepting the given url.
@@ -192,5 +192,5 @@
         }
     }
-    
+
     /**
      * Adds a new download task to the supported ones.
Index: trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java	(revision 6069)
@@ -198,5 +198,5 @@
         }
     }
-    
+
     /**
      * Collect groups of ways with common nodes in order to orthogonalize each group separately.
@@ -216,5 +216,5 @@
         return groups;
     }
-    
+
     private static void extendGroupRec(List<WayData> group, WayData newGroupMember, List<WayData> remaining) {
         group.add(newGroupMember);
@@ -427,5 +427,5 @@
          * Then sum up all horizontal / vertical segments to have a good guess for the
          * heading of the entire way.
-         * @throws InvalidUserInputException 
+         * @throws InvalidUserInputException
          */
         public void calcDirections(Direction pInitialDirection) throws InvalidUserInputException {
Index: trunk/src/org/openstreetmap/josm/actions/PasteTagsAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/PasteTagsAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/PasteTagsAction.java	(revision 6069)
@@ -39,5 +39,5 @@
 
     private static final String help = ht("/Action/PasteTags");
-    
+
     public PasteTagsAction() {
         super(tr("Paste Tags"), "pastetags",
@@ -170,5 +170,5 @@
 
         /**
-         * Replies true if there is at least one primitive of type <code>type</code> 
+         * Replies true if there is at least one primitive of type <code>type</code>
          * is in the target collection
          *
@@ -248,9 +248,9 @@
         if (selection.isEmpty())
             return;
-        
+
         String buf = Utils.getClipboardContent();
         if (buf == null || buf.isEmpty() || buf.matches("(\\d+,)*\\d+")) {
             pasteTagsFromJOSMBuffer(selection);
-        } else { 
+        } else {
             // Paste tags from arbitrary text
             pasteTagsFromText(selection, buf);
@@ -277,8 +277,8 @@
         return !commands.isEmpty();
     }
-        
+
     /** Paste tags from JOSM buffer
      * @param selection objects that will have the tags
-     * @return false if JOSM buffer was empty 
+     * @return false if JOSM buffer was empty
      */
     public static boolean pasteTagsFromJOSMBuffer(Collection<OsmPrimitive> selection) {
@@ -297,5 +297,5 @@
     /**
      * Create and execute SequenceCommand with descriptive title
-     * @param commands 
+     * @param commands
      */
     private static void commitCommands(Collection<OsmPrimitive> selection, List<Command> commands) {
@@ -309,6 +309,6 @@
                     ));
         }
-    } 
-   
+    }
+
     @Override
     protected void updateEnabledState() {
Index: trunk/src/org/openstreetmap/josm/actions/RestartAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/RestartAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/RestartAction.java	(revision 6069)
@@ -48,5 +48,5 @@
         }
     }
-    
+
     /**
      * Determines if restarting the application should be possible on this platform.
@@ -57,5 +57,5 @@
         return System.getProperty("sun.java.command") != null;
     }
-    
+
     /**
      * Restarts the current Java application
@@ -66,5 +66,5 @@
         try {
             // java binary
-            final String java = System.getProperty("java.home") + File.separator + "bin" + File.separator + 
+            final String java = System.getProperty("java.home") + File.separator + "bin" + File.separator +
                     (Main.platform instanceof PlatformHookWindows ? "java.exe" : "java");
             if (!new File(java).isFile()) {
@@ -80,5 +80,5 @@
                 }
             }
-            // program main and program arguments (be careful a sun property. might not be supported by all JVM) 
+            // program main and program arguments (be careful a sun property. might not be supported by all JVM)
             String[] mainCommand = System.getProperty("sun.java.command").split(" ");
             // program main is a jar
@@ -115,5 +115,5 @@
         }
     }
-    
+
     /**
      * Returns a new {@code ButtonSpec} instance that performs this action.
@@ -142,5 +142,5 @@
         );
     }
-    
+
     /**
      * Returns default {@code ButtonSpec} instances for this action (Restart/Cancel).
Index: trunk/src/org/openstreetmap/josm/actions/SaveActionBase.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/SaveActionBase.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/SaveActionBase.java	(revision 6069)
@@ -118,5 +118,5 @@
      * Creates a new "Save" dialog for a single {@link ExtensionFileFilter} and makes it visible.<br/>
      * When the user has chosen a file, checks the file extension, and confirms overwrite if needed.
-     * 
+     *
      * @param title The dialog title
      * @param filter The dialog file filter
@@ -133,5 +133,5 @@
      * Creates a new "Save" dialog for a given file extension and makes it visible.<br/>
      * When the user has chosen a file, checks the file extension, and confirms overwrite if needed.
-     * 
+     *
      * @param title The dialog title
      * @param extension The file extension
@@ -143,9 +143,9 @@
         return checkFileAndConfirmOverWrite(fc, extension);
     }
-    
+
     private static File checkFileAndConfirmOverWrite(JFileChooser fc, String extension) {
         if (fc == null) return null;
         File file = fc.getSelectedFile();
-        
+
         FileFilter ff = fc.getFileFilter();
         if (!ff.accept(file)) {
Index: trunk/src/org/openstreetmap/josm/actions/SaveAsAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/SaveAsAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/SaveAsAction.java	(revision 6069)
@@ -18,5 +18,5 @@
 public class SaveAsAction extends SaveActionBase {
     private static SaveAsAction instance = new SaveAsAction();
-    
+
     /**
      * Construct the action with "Save" as label.
@@ -28,5 +28,5 @@
         putValue("help", ht("/Action/SaveAs"));
     }
-    
+
     public static SaveAsAction getInstance() {
         return instance;
Index: trunk/src/org/openstreetmap/josm/actions/SessionLoadAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/SessionLoadAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/SessionLoadAction.java	(revision 6069)
@@ -26,5 +26,5 @@
 
 public class SessionLoadAction extends DiskAccessAction {
-    
+
     public SessionLoadAction() {
         super(tr("Load Session"), "open", tr("Load a session from file."), null, true, "load-session", true);
Index: trunk/src/org/openstreetmap/josm/actions/SessionSaveAsAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/SessionSaveAsAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/SessionSaveAsAction.java	(revision 6069)
@@ -73,5 +73,5 @@
             }
         }
-        
+
         FileFilter joz = new ExtensionFileFilter("joz", "joz", tr("Session file (archive) (*.joz)"));
         FileFilter jos = new ExtensionFileFilter("jos", "jos", tr("Session file (*.jos)"));
Index: trunk/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java	(revision 6069)
@@ -41,5 +41,5 @@
  */
 public final class ShowStatusReportAction extends JosmAction {
-    
+
     /**
      * Constructs a new {@code ShowStatusReportAction}
@@ -63,5 +63,5 @@
         }
     }
-    
+
     /**
      * Replies the report header (software and system info)
Index: trunk/src/org/openstreetmap/josm/actions/UploadAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/UploadAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/UploadAction.java	(revision 6069)
@@ -155,5 +155,5 @@
         );
     }
-    
+
     /**
      * returns true if the user wants to cancel, false if they
Index: trunk/src/org/openstreetmap/josm/actions/ViewportFollowToggleAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/ViewportFollowToggleAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/ViewportFollowToggleAction.java	(revision 6069)
@@ -28,5 +28,5 @@
         );
         putValue("help", ht("/Action/ViewportFollowing"));
-        selected = false; 
+        selected = false;
         notifySelectedState();
     }
Index: trunk/src/org/openstreetmap/josm/actions/WireframeToggleAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/WireframeToggleAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/WireframeToggleAction.java	(revision 6069)
@@ -30,5 +30,5 @@
                 false /* register toolbar */
         );
-        putValue("toolbar", "wireframe"); 
+        putValue("toolbar", "wireframe");
         Main.toolbar.register(this);
         selected = MapRendererFactory.getInstance().isWireframeMapRendererActive();
@@ -60,10 +60,10 @@
         selected = !selected;
         //Main.pref.put("draw.wireframe", selected);
-         if (selected){ 
-         MapRendererFactory.getInstance().activate(WireframeMapRenderer.class); 
-            } else { 
-                MapRendererFactory.getInstance().activate(StyledMapRenderer.class); 
-            } 
-        
+         if (selected){
+         MapRendererFactory.getInstance().activate(WireframeMapRenderer.class);
+            } else {
+                MapRendererFactory.getInstance().activate(StyledMapRenderer.class);
+            }
+
         notifySelectedState();
         if (Main.isDisplayingMapView()) {
@@ -71,5 +71,5 @@
         }
     }
-    
+
     public void actionPerformed(ActionEvent e) {
         toggleSelectedState();
Index: trunk/src/org/openstreetmap/josm/actions/audio/AudioBackAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/audio/AudioBackAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/audio/AudioBackAction.java	(revision 6069)
@@ -16,5 +16,5 @@
 
 /**
- * Jump the audio backward 10 seconds and start playing if paused. 
+ * Jump the audio backward 10 seconds and start playing if paused.
  * @since 547
  */
Index: trunk/src/org/openstreetmap/josm/actions/audio/AudioFastSlowAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/audio/AudioFastSlowAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/audio/AudioFastSlowAction.java	(revision 6069)
@@ -19,5 +19,5 @@
     /**
      * Constructs a new {@code AudioFastSlowAction}.
-     * 
+     *
      * @param name the action's text as displayed on the menu (if it is added to a menu)
      * @param iconName the filename of the icon to use
Index: trunk/src/org/openstreetmap/josm/actions/audio/AudioFasterAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/audio/AudioFasterAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/audio/AudioFasterAction.java	(revision 6069)
@@ -12,5 +12,5 @@
 /**
  * Increase the speed of audio playback.
- * Each use increases the speed further until one of the other controls is used. 
+ * Each use increases the speed further until one of the other controls is used.
  * @since 563
  */
Index: trunk/src/org/openstreetmap/josm/actions/audio/AudioFwdAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/audio/AudioFwdAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/audio/AudioFwdAction.java	(revision 6069)
@@ -19,5 +19,5 @@
  */
 public class AudioFwdAction extends JosmAction {
-    
+
     /**
      * Constructs a new {@code AudioFwdAction}.
Index: trunk/src/org/openstreetmap/josm/actions/audio/AudioNextAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/audio/AudioNextAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/audio/AudioNextAction.java	(revision 6069)
@@ -14,5 +14,5 @@
 /**
  * Play the sound track from the Audio Marker after the one most recently played.<br/>
- * Play from the first such Marker if none has been played, or repeat the last marker if at the end. 
+ * Play from the first such Marker if none has been played, or repeat the last marker if at the end.
  * @since 547
  */
Index: trunk/src/org/openstreetmap/josm/actions/audio/AudioPlayPauseAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/audio/AudioPlayPauseAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/audio/AudioPlayPauseAction.java	(revision 6069)
@@ -17,5 +17,5 @@
  * If not playing, play the sound track from the first Audio Marker, or from the point at which it was paused.<br/>
  * If playing, pause the sound.<br/>
- * If fast forwarding or slow forwarding, resume normal speed. 
+ * If fast forwarding or slow forwarding, resume normal speed.
  * @since 547
  */
Index: trunk/src/org/openstreetmap/josm/actions/audio/AudioPrevAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/audio/AudioPrevAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/audio/AudioPrevAction.java	(revision 6069)
@@ -14,5 +14,5 @@
 /**
  * Play the sound track from the Audio Marker before the one most recently played.<br/>
- * Play from the first such Marker if none has been played or already at the first marker. 
+ * Play from the first such Marker if none has been played or already at the first marker.
  * @since 547
  */
Index: trunk/src/org/openstreetmap/josm/actions/audio/AudioSlowerAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/audio/AudioSlowerAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/audio/AudioSlowerAction.java	(revision 6069)
@@ -12,5 +12,5 @@
 /**
  * Decrease the speed of audio playback.
- * Each use decreases the speed further until one of the other controls is used. 
+ * Each use decreases the speed further until one of the other controls is used.
  * @since 563
  */
Index: trunk/src/org/openstreetmap/josm/actions/downloadtasks/AbstractDownloadTask.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/downloadtasks/AbstractDownloadTask.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/downloadtasks/AbstractDownloadTask.java	(revision 6069)
@@ -47,5 +47,5 @@
         return errorMessages;
     }
-    
+
     @Override
     public String acceptsDocumentationSummary() {
@@ -60,5 +60,5 @@
                 buf.append(XmlWriter.encode(pattern));
                 buf.append("</li>");
-            } 
+            }
             buf.append("</ul>");
         }
@@ -90,4 +90,4 @@
         return new String[]{};
     }
-    
+
 }
Index: trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadGpsTask.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadGpsTask.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadGpsTask.java	(revision 6069)
@@ -126,13 +126,13 @@
                 return;
             String name = newLayerName != null ? newLayerName : tr("Downloaded GPX Data");
-            
+
             GpxImporterData layers = GpxImporter.loadLayers(rawData, reader.isGpxParsedProperly(), name, tr("Markers from {0}", name));
-            
+
             GpxLayer gpxLayer = addOrMergeLayer(layers.getGpxLayer(), findGpxMergeLayer());
             addOrMergeLayer(layers.getMarkerLayer(), findMarkerMergeLayer(gpxLayer));
-            
+
             layers.getPostLayerTask().run();
         }
-        
+
         private <L extends Layer> L addOrMergeLayer(L layer, L mergeLayer) {
             if (layer == null) return null;
@@ -160,5 +160,5 @@
             return null;
         }
-        
+
         private MarkerLayer findMarkerMergeLayer(GpxLayer fromLayer) {
             if (!Main.isDisplayingMapView())
@@ -189,5 +189,5 @@
         return null;
     }
-    
+
     /**
      * Determines if the given URL denotes an OSM gpx-related API call.
Index: trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java	(revision 6069)
@@ -36,22 +36,22 @@
  */
 public class DownloadOsmTask extends AbstractDownloadTask {
-    
+
     private static final String PATTERN_OSM_API_URL           = "http://.*/api/0.6/(map|nodes?|ways?|relations?|\\*).*";
     private static final String PATTERN_OVERPASS_API_URL      = "http://.*/interpreter\\?data=.*";
     private static final String PATTERN_OVERPASS_API_XAPI_URL = "http://.*/xapi\\?.*\\[@meta\\].*";
     private static final String PATTERN_EXTERNAL_OSM_FILE     = "https?://.*/.*\\.osm";
-    
+
     protected Bounds currentBounds;
     protected DataSet downloadedData;
     protected DownloadTask downloadTask;
-    
+
     protected OsmDataLayer targetLayer;
-    
+
     protected String newLayerName = null;
-    
+
     @Override
     public String[] getPatterns() {
         if (this.getClass() == DownloadOsmTask.class) {
-            return new String[]{PATTERN_OSM_API_URL, PATTERN_OVERPASS_API_URL, 
+            return new String[]{PATTERN_OSM_API_URL, PATTERN_OVERPASS_API_URL,
                 PATTERN_OVERPASS_API_XAPI_URL, PATTERN_EXTERNAL_OSM_FILE};
         } else {
@@ -149,5 +149,5 @@
         return url;
     }
-    
+
     /**
      * Loads a given URL from the OSM Server
@@ -159,5 +159,5 @@
         if (url.matches(PATTERN_OVERPASS_API_URL)) {
             url = encodePartialUrl(url, "/interpreter?data="); // encode only the part after the = sign
-            
+
         } else if (url.matches(PATTERN_OVERPASS_API_XAPI_URL)) {
             url = encodePartialUrl(url, "/xapi?"); // encode only the part after the ? sign
@@ -171,5 +171,5 @@
         return Main.worker.submit(downloadTask);
     }
-    
+
     protected final void extractOsmFilename(String pattern, String url) {
         Matcher matcher = Pattern.compile(pattern).matcher(url);
@@ -194,5 +194,5 @@
             this.newLayer = newLayer;
         }
-        
+
         protected DataSet parseDataSet() throws OsmTransferException {
             return reader.parseOsm(progressMonitor.createSubTaskMonitor(ProgressMonitor.ALL_TICKS, false));
@@ -247,5 +247,5 @@
             return null;
         }
-        
+
         protected OsmDataLayer createNewLayer(String layerName) {
             if (layerName == null || layerName.isEmpty()) {
@@ -254,5 +254,5 @@
             return new OsmDataLayer(dataSet, layerName, null);
         }
-        
+
         protected OsmDataLayer createNewLayer() {
             return createNewLayer(null);
@@ -297,5 +297,5 @@
             }
         }
-        
+
         protected void computeBboxAndCenterScale() {
             BoundingXYVisitor v = new BoundingXYVisitor();
Index: trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadTask.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadTask.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadTask.java	(revision 6069)
@@ -14,5 +14,5 @@
  */
 public interface DownloadTask {
-    
+
     /**
      * Asynchronously launches the download task for a given bounding box.
@@ -71,5 +71,5 @@
      */
     Future<?> loadUrl(boolean newLayer, String url, ProgressMonitor progressMonitor);
-    
+
     /**
      * Returns true if the task is able to open the given URL, false otherwise.
@@ -85,5 +85,5 @@
      */
     String acceptsDocumentationSummary();
-    
+
     /**
      * Returns human-readable description of the task
@@ -92,5 +92,5 @@
      */
     String getTitle();
-    
+
     /**
      * Returns regular expressions that match the URLs
@@ -114,10 +114,10 @@
      */
     public void cancel();
-    
+
     /**
      * Replies the HTML-formatted confirmation message to be shown to user when the given URL needs to be confirmed before loading.
      * @param url The URL to be confirmed
      * @return The HTML-formatted confirmation message to be shown to user
-     * @since 
+     * @since
      */
     public String getConfirmationMessage(URL url);
Index: trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadTaskList.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadTaskList.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadTaskList.java	(revision 6069)
@@ -46,5 +46,5 @@
     private List<Future<?>> taskFutures = new LinkedList<Future<?>>();
     private ProgressMonitor progressMonitor;
-    
+
     private void addDownloadTask(DownloadTask dt, Rectangle2D td, int i, int n) {
         ProgressMonitor childProgress = progressMonitor.createSubTaskMonitor(1, false);
@@ -54,5 +54,5 @@
         tasks.add(dt);
     }
-    
+
     /**
      * Downloads a list of areas from the OSM Server
@@ -61,5 +61,5 @@
      * @param osmData Set to true if OSM data should be downloaded
      * @param gpxData Set to true if GPX data should be downloaded
-     * @param progressMonitor The progress monitor 
+     * @param progressMonitor The progress monitor
      * @return The Future representing the asynchronous download task
      */
@@ -71,5 +71,5 @@
             Main.map.mapView.setActiveLayer(l);
         }
-        
+
         int n = (osmData && gpxData ? 2 : 1)*rects.size();
         progressMonitor.beginTask(null, n);
@@ -230,5 +230,5 @@
 
         private final boolean osmData;
-        
+
         public PostDownloadProcessor(boolean osmData) {
             this.osmData = osmData;
Index: trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java	(revision 6069)
@@ -257,5 +257,5 @@
      * calls the cursor and target highlighting routines. Allows for modifiers
      * not taken from the given mouse event.
-     * 
+     *
      * Normally the mouse event also contains the modifiers. However, when the
      * mouse is not moved and only modifier keys are pressed, no mouse event
Index: trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java	(revision 6069)
@@ -121,5 +121,5 @@
     private Stroke rubberLineStroke;
     private static final BasicStroke BASIC_STROKE = new BasicStroke(1);
-    
+
     public DrawAction(MapFrame mapFrame) {
         super(tr("Draw"), "node/autonode", tr("Draw nodes"),
@@ -204,8 +204,8 @@
             return;
         super.enterMode();
-        
+
         rubberLineColor = Main.pref.getColor(marktr("helper line"), null);
         if (rubberLineColor == null) rubberLineColor = PaintColors.SELECTED.get();
-        
+
         rubberLineStroke = GuiHelper.getCustomizedStroke(Main.pref.get("draw.stroke.helper-line","3"));
         drawHelperLine = Main.pref.getBoolean("draw.helper-line", true);
@@ -773,11 +773,11 @@
         updateKeyModifiers(e);
         mousePos = e.getPoint();
-        if (snapHelper.isSnapOn() && ctrl) 
+        if (snapHelper.isSnapOn() && ctrl)
             tryToSetBaseSegmentForAngleSnap();
-         
+
         computeHelperLine();
         addHighlighting();
     }
-    
+
     /**
      * This method is used to detect segment under mouse and use it as reference for angle snapping
@@ -888,5 +888,5 @@
         currentBaseNode = null;
         previousNode = null;
-        
+
         // Try to find an open way to measure angle from it. The way is not to be continued!
         // warning: may result in changes of currentBaseNode and previousNode
@@ -895,5 +895,5 @@
             for (OsmPrimitive p: selectedNode.getReferrers()) {
                 if (p.isUsable() && p instanceof Way && ((Way) p).isFirstLastNode(selectedNode)) {
-                    if (selectedWay!=null) { // two uncontinued ways, nothing to take as reference 
+                    if (selectedWay!=null) { // two uncontinued ways, nothing to take as reference
                         selectedWay=null;
                         break;
@@ -904,6 +904,6 @@
                 }
             }
-        } 
-        
+        }
+
         if (selectedNode == null) {
             if (selectedWay == null)
@@ -916,5 +916,5 @@
         }
     }
-    
+
     /**
      * if one of the ends of @param way is given @param node ,
@@ -1349,5 +1349,5 @@
         JCheckBoxMenuItem checkBox;
         public final Color ORANGE_TRANSPARENT = new Color(Color.ORANGE.getRed(),Color.ORANGE.getGreen(),Color.ORANGE.getBlue(),128);
-    
+
         public void init() {
             snapOn=false;
Index: trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java	(revision 6069)
@@ -73,5 +73,5 @@
     private Color mainColor;
     private Stroke mainStroke;
-    
+
     /**
      * drawing settings for helper lines
@@ -88,5 +88,5 @@
     private List<ReferenceSegment> possibleMoveDirections;
 
-    
+
     /**
      * Collection of nodes that is moved
@@ -238,14 +238,14 @@
         if (e.getButton() != MouseEvent.BUTTON1)
             return;
-        
+
         requestFocusInMapView();
         updateKeyModifiers(e);
-        
+
         selectedNode = Main.map.mapView.getNearestNode(e.getPoint(), OsmPrimitive.isSelectablePredicate);
         selectedSegment = Main.map.mapView.getNearestWaySegment(e.getPoint(), OsmPrimitive.isSelectablePredicate);
-        
+
         // If nothing gets caught, stay in select mode
         if (selectedSegment == null && selectedNode == null) return;
-        
+
         if (selectedNode != null) {
             if (ctrl || nodeDragWithoutCtrl) {
@@ -253,5 +253,5 @@
                 movingNodeList.add(selectedNode);
                 calculatePossibleDirectionsByNode();
-                if (possibleMoveDirections.isEmpty()) { 
+                if (possibleMoveDirections.isEmpty()) {
                     // if no directions fould, do not enter dragging mode
                     return;
@@ -278,5 +278,5 @@
             calculatePossibleDirectionsBySegment();
         }
-        
+
         // Signifies that nothing has happened yet
         newN1en = null;
@@ -386,8 +386,8 @@
         }
     }
-    
+
     /**
      * Insert node into nearby segment
-     * @param e - current mouse point 
+     * @param e - current mouse point
      */
     private void addNewNode(MouseEvent e) {
@@ -488,5 +488,5 @@
         Main.main.undoRedo.add(c);
     }
-    
+
     /**
      * This method tests if a node has other ways apart from the given one.
@@ -502,15 +502,15 @@
         return false;
     }
-    
+
     /**
      * Determine best movenemnt from initialMousePos  to current position @param mouseEn,
      * choosing one of the directions @field possibleMoveDirections
-     * @return movement vector 
+     * @return movement vector
      */
     private EastNorth calculateBestMovement(EastNorth mouseEn) {
-        
+
         EastNorth initialMouseEn = Main.map.mapView.getEastNorth(initialMousePos.x, initialMousePos.y);
         EastNorth mouseMovement = initialMouseEn.sub(mouseEn);
-        
+
         double bestDistance = Double.POSITIVE_INFINITY;
         EastNorth bestMovement = null;
@@ -565,5 +565,5 @@
         initialN1en = selectedSegment.getFirstNode().getEastNorth();
         initialN2en = selectedSegment.getSecondNode().getEastNorth();
-            
+
         //add direction perpendicular to the selected segment
         possibleMoveDirections = new ArrayList<ReferenceSegment>();
@@ -573,5 +573,5 @@
                 ), initialN1en, initialN2en, true));
 
-        
+
         //add directions parallel to neighbor segments
         Node prevNode = getPreviousNode(selectedSegment.lowerIndex);
@@ -593,5 +593,5 @@
         }
     }
-    
+
     /**
      * Gather possible move directions - along all adjacent segments
@@ -609,10 +609,10 @@
                         initialN1en.getX() - en.getX(),
                         initialN1en.getY() - en.getY()
-                    ), initialN1en, en, false));                                    
+                    ), initialN1en, en, false));
                 }
             }
         }
     }
-    
+
     /**
      * Gets a node from selected way before given index.
@@ -685,5 +685,5 @@
 
                 EastNorth normalUnitVector = getNormalUniVector();
-                
+
                 if (mode == Mode.extrude || mode == Mode.create_new) {
                     g2.setColor(mainColor);
@@ -722,5 +722,5 @@
                     if (p1.distance(p2) < 3) {
                         g2.setStroke(mainStroke);
-                        g2.drawOval((int)(p1.x-symbolSize/2), (int)(p1.y-symbolSize/2), 
+                        g2.drawOval((int)(p1.x-symbolSize/2), (int)(p1.y-symbolSize/2),
                                 (int)(symbolSize), (int)(symbolSize));
                     } else {
@@ -752,5 +752,5 @@
         }
     }
-    
+
     private EastNorth getNormalUniVector() {
         double fac = 1.0 / activeMoveDirection.en.distance(0,0);
@@ -770,5 +770,5 @@
         return normalUnitVector;
     }
-    
+
     private void drawAngleSymbol(Graphics2D g2, Point2D center, EastNorth normal, boolean mirror) {
         // EastNorth units per pixel
@@ -776,11 +776,11 @@
         double raoffsetx = symbolSize*factor*normal.getX();
         double raoffsety = symbolSize*factor*normal.getY();
-        
-        double cx = center.getX(), cy = center.getY(); 
+
+        double cx = center.getX(), cy = center.getY();
         double k = (mirror ? -1 : 1);
         Point2D ra1 = new Point2D.Double(cx + raoffsetx, cy + raoffsety);
         Point2D ra3 = new Point2D.Double(cx - raoffsety*k, cy + raoffsetx*k);
         Point2D ra2 = new Point2D.Double(ra1.getX() - raoffsety*k, ra1.getY() + raoffsetx*k);
-        
+
         GeneralPath ra = new GeneralPath();
         ra.moveTo((float)ra1.getX(), (float)ra1.getY());
Index: trunk/src/org/openstreetmap/josm/actions/mapmode/ImproveWayAccuracyAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/mapmode/ImproveWayAccuracyAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/mapmode/ImproveWayAccuracyAction.java	(revision 6069)
@@ -89,5 +89,5 @@
     private Stroke deleteNodeStroke;
     private int dotSize;
-    
+
     private boolean selectionChangedBlocked = false;
 
@@ -130,5 +130,5 @@
         deleteNodeStroke = GuiHelper.getCustomizedStroke(Main.pref.get("improvewayaccuracy.stroke.delete-node", "1"));
         dotSize = Main.pref.getInteger("improvewayaccuracy.dot-size",6);
-                
+
         mv = Main.map.mapView;
         mousePos = null;
Index: trunk/src/org/openstreetmap/josm/actions/mapmode/MapMode.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/mapmode/MapMode.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/mapmode/MapMode.java	(revision 6069)
@@ -57,5 +57,5 @@
         updateStatusLine();
     }
-    
+
     /**
      * Makes this map mode inactive.
@@ -102,5 +102,5 @@
         shift = (modifiers & ActionEvent.SHIFT_MASK) != 0;
     }
-    
+
     protected void requestFocusInMapView() {
         if (isEnabled()) {
Index: trunk/src/org/openstreetmap/josm/actions/mapmode/ParallelWayAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/mapmode/ParallelWayAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/mapmode/ParallelWayAction.java	(revision 6069)
@@ -98,5 +98,5 @@
     private boolean snapDefault;
 
-    private double snapThreshold; 
+    private double snapThreshold;
     private double snapDistanceMetric;
     private double snapDistanceImperial;
@@ -125,5 +125,5 @@
     private EastNorth helperLineStart;
     private EastNorth helperLineEnd;
-    
+
     Stroke helpLineStroke;
     Stroke refLineStroke;
@@ -157,6 +157,6 @@
         refLineStroke = GuiHelper.getCustomizedStroke(getStringPref("stroke.ref-line", "1 2 2"));
         mainColor = Main.pref.getColor(marktr("make parallel helper line"), null);
-        if (mainColor == null) mainColor = PaintColors.SELECTED.get();                
-        
+        if (mainColor == null) mainColor = PaintColors.SELECTED.get();
+
         //// Needed to update the mouse cursor if modifiers are changed when the mouse is motionless
         try {
Index: trunk/src/org/openstreetmap/josm/actions/mapmode/ParallelWays.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/mapmode/ParallelWays.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/mapmode/ParallelWays.java	(revision 6069)
@@ -22,5 +22,5 @@
 /**
  * Helper for ParallelWayAction
- * 
+ *
  * @author Ole Jørgen Brønner (olejorgenb)
  */
@@ -69,5 +69,5 @@
         if (sortedNodesPath == null)
             throw new IllegalArgumentException("Ways must have spanning path"); // Create a dedicated exception?
-        
+
         // Fix #8631 - Remove duplicated nodes from graph to be robust with self-intersecting ways
         Set<Node> removedNodes = new HashSet<Node>();
Index: trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java	(revision 6069)
@@ -207,5 +207,5 @@
 
     int previousModifiers;
-    
+
      /**
      * This is called whenever the keyboard modifier status changes
@@ -282,5 +282,5 @@
         return repaintIfRequired(newHighlights);
     }
-    
+
     /**
      * works out which cursor should be displayed for most of SelectAction's
@@ -381,5 +381,5 @@
         return needsRepaint;
     }
-    
+
      /**
      * Look, whether any object is selected. If not, select the nearest node.
@@ -397,7 +397,7 @@
         if (!mv.isActiveLayerVisible() || !(Boolean) this.getValue("active") || mouseDownButton != MouseEvent.BUTTON1)
             return;
-        
+
         // left-button mouse click only is processed here
-        
+
         // request focus in order to enable the expected keyboard shortcuts
         mv.requestFocus();
@@ -416,9 +416,9 @@
 
         // primitives under cursor are stored in c collection
-        
+
         OsmPrimitive nearestPrimitive = mv.getNearestNodeOrWay(e.getPoint(), OsmPrimitive.isSelectablePredicate, true);
 
         determineMapMode(nearestPrimitive!=null);
-        
+
         switch(mode) {
         case rotate:
@@ -462,5 +462,5 @@
         updateStatusLine();
     }
-    
+
     @Override
     public void mouseMoved(MouseEvent e) {
@@ -475,5 +475,5 @@
         }
     }
-    
+
     /**
      * If the left mouse button is pressed, move all currently selected
@@ -485,10 +485,10 @@
         if (!mv.isActiveLayerVisible())
             return;
-        
+
         // Swing sends random mouseDragged events when closing dialogs by double-clicking their top-left icon on Windows
         // Ignore such false events to prevent issues like #7078
         if (mouseDownButton == MouseEvent.BUTTON1 && mouseReleaseTime > mouseDownTime)
             return;
-        
+
         cancelDrawMode = true;
         if (mode == Mode.select)
@@ -542,5 +542,5 @@
         if (e.getPoint().equals(lastMousePos))
             return;
-        
+
         EastNorth currentEN = mv.getEastNorth(e.getX(), e.getY());
 
@@ -559,5 +559,5 @@
     }
 
-    
+
 
     @Override
@@ -568,5 +568,5 @@
     }
 
-    
+
     @Override
     public void mouseReleased(MouseEvent e) {
@@ -653,5 +653,5 @@
         }
     }
-    
+
     /** returns true whenever elements have been grabbed and moved (i.e. the initial
      * thresholds have been exceeded) and is still in progress (i.e. mouse button
@@ -662,7 +662,7 @@
     }
 
-    
-    /**
-     * Create or update data modification command while dragging mouse - implementation of 
+
+    /**
+     * Create or update data modification command while dragging mouse - implementation of
      * continuous moving, scaling and rotation
      * @param currentEN - mouse position
@@ -677,5 +677,5 @@
             getCurrentDataSet().setSelected(nearestPrimitive);
         }
-        
+
         Collection<Node> affectedNodes = AllNodesVisitor.getAllNodes(selection);
         // for these transformations, having only one node makes no sense - quit silently
@@ -710,11 +710,11 @@
         } else {
             startEN = currentEN; // drag can continue after scaling/rotation
-    
+
             if (mode != Mode.rotate && mode != Mode.scale) {
                 return false;
             }
-            
+
             getCurrentDataSet().beginUpdate();
-            
+
             if (mode == Mode.rotate) {
                 if (c instanceof RotateCommand && affectedNodes.equals(((RotateCommand) c).getTransformedNodes())) {
@@ -730,5 +730,5 @@
                 }
             }
-            
+
             Collection<Way> ways = getCurrentDataSet().getSelectedWays();
             if (doesImpactStatusLine(affectedNodes, ways)) {
@@ -739,5 +739,5 @@
         return true;
     }
-    
+
     private boolean doesImpactStatusLine(Collection<Node> affectedNodes, Collection<Way> selectedWays) {
         for (Way w : selectedWays) {
@@ -750,5 +750,5 @@
         return false;
     }
-    
+
     /**
      * Adapt last move command (if it is suitable) to work with next drag, started at point startEN
@@ -762,5 +762,5 @@
         }
     }
-       
+
     /**
      * Obtain command in undoRedo stack to "continue" when dragging
@@ -774,5 +774,5 @@
         return c;
     }
-    
+
     /**
      * Present warning in case of large and possibly unwanted movements and undo
@@ -812,5 +812,5 @@
         getCurrentDataSet().fireSelectionChanged();
     }
-    
+
     /**
      * Merges the selected nodes to the one closest to the given mouse position iff the control
@@ -908,8 +908,8 @@
         this.lassoMode = lassoMode;
     }
-    
+
     CycleManager cycleManager = new CycleManager();
     VirtualManager virtualManager = new VirtualManager();
-    
+
     private class CycleManager {
 
@@ -926,5 +926,5 @@
             multipleMatchesParameter = Main.pref.getBoolean("selectaction.cycles.multiple.matches", false);
         }
-        
+
         /**
          * Determine prmitive to be selected and build cycleList
@@ -941,7 +941,7 @@
                 // Point p = e.getPoint();
 //              updateKeyModifiers(e); // cycleSetup called only after updateModifiers !
-                
+
                 if (!(alt || multipleMatchesParameter)) {
-                    // no real cycling, just one element in cycle list                    
+                    // no real cycling, just one element in cycle list
                     cycleList = MapView.asColl(osm);
 
@@ -1021,5 +1021,5 @@
                         // first selected primitive in cycleList is found
                         if (cyclePrims || ctrl) {
-                            ds.clearSelection(foundInDS); // deselect it 
+                            ds.clearSelection(foundInDS); // deselect it
                             nxt = i.hasNext() ? i.next() : first;
                             // return next one in cycle list (last->first)
@@ -1029,5 +1029,5 @@
                 }
             }
-            
+
             // if "no-alt-cycling" is enabled, Ctrl-Click arrives here.
             if (ctrl) {
@@ -1054,5 +1054,5 @@
         }
     }
-    
+
     private class VirtualManager {
 
@@ -1062,5 +1062,5 @@
         private int virtualSnapDistSq2;
         private int virtualSpace;
-        
+
         private void init() {
             nodeVirtualSize = Main.pref.getInteger("mappaint.node.virtual-size", 8);
@@ -1069,5 +1069,5 @@
             virtualSpace = Main.pref.getInteger("mappaint.node.virtual-space", 70);
         }
-        
+
         /**
          * Calculate a virtual node if there is enough visual space to draw a
Index: trunk/src/org/openstreetmap/josm/actions/relation/SelectRelationAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/relation/SelectRelationAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/relation/SelectRelationAction.java	(revision 6069)
@@ -11,9 +11,9 @@
 
 /**
- * Sets the current selection to specified list of relations 
+ * Sets the current selection to specified list of relations
  * @since 5793
  */
 public class SelectRelationAction extends AbstractRelationAction {
-    
+
     private final boolean add;
 
Index: trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java	(revision 6069)
@@ -90,5 +90,5 @@
         }
     }
-    
+
     public static Collection<SearchSetting> getSearchHistory() {
         return searchHistory;
Index: trunk/src/org/openstreetmap/josm/actions/upload/FixDataHook.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/upload/FixDataHook.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/upload/FixDataHook.java	(revision 6069)
@@ -99,5 +99,5 @@
         }
     }
-    
+
     /**
      * Data fix to cleanup wrong spelled keys
@@ -130,5 +130,5 @@
         }
     }
-    
+
     /**
      * Data fix to cleanup wrong spelled tags
@@ -170,5 +170,5 @@
         }
     }
-    
+
     /**
      * Checks the upload for deprecated or wrong tags.
Index: trunk/src/org/openstreetmap/josm/actions/upload/ValidateUploadHook.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/upload/ValidateUploadHook.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/actions/upload/ValidateUploadHook.java	(revision 6069)
@@ -60,5 +60,5 @@
             test.visit(selection);
             test.endTest();
-            if (Main.pref.getBoolean(ValidatorPreference.PREF_OTHER, false) && 
+            if (Main.pref.getBoolean(ValidatorPreference.PREF_OTHER, false) &&
                 Main.pref.getBoolean(ValidatorPreference.PREF_OTHER_UPLOAD, false))
             {
Index: trunk/src/org/openstreetmap/josm/command/AddPrimitivesCommand.java
===================================================================
--- trunk/src/org/openstreetmap/josm/command/AddPrimitivesCommand.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/command/AddPrimitivesCommand.java	(revision 6069)
@@ -59,5 +59,5 @@
         init(data, toSelect);
     }
-    
+
     private final void init(List<PrimitiveData> data, List<PrimitiveData> toSelect) {
         CheckParameterUtil.ensureParameterNotNull(data, "data");
@@ -113,9 +113,9 @@
     @Override public void undoCommand() {
         DataSet ds = getLayer().data;
-        
+
         if (createdPrimitives == null) {
             createdPrimitives = new ArrayList<OsmPrimitive>(data.size());
             createdPrimitivesToSelect = new ArrayList<OsmPrimitive>(toSelect.size());
-            
+
             for (PrimitiveData pd : data) {
                 OsmPrimitive p = ds.getPrimitiveById(pd);
@@ -126,5 +126,5 @@
             }
             createdPrimitives = PurgeCommand.topoSort(createdPrimitives);
-            
+
             for (PrimitiveData p : data) {
                 ds.removePrimitive(p);
@@ -132,5 +132,5 @@
             data = null;
             toSelect = null;
-            
+
         } else {
             for (OsmPrimitive osm : createdPrimitives) {
@@ -161,5 +161,5 @@
         if (createdPrimitives != null)
             return createdPrimitives;
-        
+
         Collection<OsmPrimitive> prims = new HashSet<OsmPrimitive>();
         for (PrimitiveData d : data) {
Index: trunk/src/org/openstreetmap/josm/command/MoveCommand.java
===================================================================
--- trunk/src/org/openstreetmap/josm/command/MoveCommand.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/command/MoveCommand.java	(revision 6069)
@@ -31,5 +31,5 @@
     private Collection<Node> nodes = new LinkedList<Node>();
     /**
-     * Starting position, base command point, current (mouse-drag) position = startEN + (x,y) = 
+     * Starting position, base command point, current (mouse-drag) position = startEN + (x,y) =
      */
     private EastNorth startEN;
@@ -73,5 +73,5 @@
         this(objects, offset.getX(), offset.getY());
     }
-    
+
     /**
      * Create a MoveCommand and assign the initial object set and movement vector.
@@ -102,5 +102,5 @@
          startEN =  start;
      }
-     
+
     /**
      * Move the same set of objects again by the specified vector. The vectors
@@ -122,11 +122,11 @@
         moveAgain(x - this.x, y - this.y);
     }
-    
-    /**
-     * Change the displacement vector to have endpoint @param currentEN 
+
+    /**
+     * Change the displacement vector to have endpoint @param currentEN
      * starting point is  startEN
      */
     public void applyVectorTo(EastNorth currentEN) {
-        if (startEN == null) 
+        if (startEN == null)
             return;
         x = currentEN.getX() - startEN.getX();
Index: trunk/src/org/openstreetmap/josm/command/PurgeCommand.java
===================================================================
--- trunk/src/org/openstreetmap/josm/command/PurgeCommand.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/command/PurgeCommand.java	(revision 6069)
@@ -39,5 +39,5 @@
 
     protected Map<PrimitiveId, PrimitiveData> makeIncompleteData_byPrimId;
-    
+
     protected final ConflictCollection purgedConflicts = new ConflictCollection();
 
@@ -132,5 +132,5 @@
             }
         }
-        
+
         for (Conflict<?> conflict : purgedConflicts) {
             getLayer().getConflicts().add(conflict);
Index: trunk/src/org/openstreetmap/josm/command/RotateCommand.java
===================================================================
--- trunk/src/org/openstreetmap/josm/command/RotateCommand.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/command/RotateCommand.java	(revision 6069)
@@ -61,5 +61,5 @@
         handleEvent(currentEN);
     }
-    
+
     /**
      * Get angle between the horizontal axis and the line formed by the pivot and give points.
Index: trunk/src/org/openstreetmap/josm/corrector/ReverseWayTagCorrector.java
===================================================================
--- trunk/src/org/openstreetmap/josm/corrector/ReverseWayTagCorrector.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/corrector/ReverseWayTagCorrector.java	(revision 6069)
@@ -45,5 +45,5 @@
         }
     }
-    
+
     private static final Collection<Pattern> ignoredKeys = new ArrayList<Pattern>();
     static {
@@ -58,5 +58,5 @@
         }
     }
-    
+
     private static class StringSwitcher {
 
@@ -93,5 +93,5 @@
      */
     public static class TagSwitcher {
-        
+
         /**
          * Reverses a given tag.
@@ -102,5 +102,5 @@
             return apply(tag.getKey(), tag.getValue());
         }
-        
+
         /**
          * Reverses a given tag (key=value).
@@ -128,5 +128,5 @@
                 // Change key but not left/right value (fix #8518)
                 newKey = FORWARD_BACKWARD.apply(key);
-                
+
             } else if (!ignoreKeyForCorrection(key)) {
                 for (StringSwitcher prefixSuffixSwitcher : stringSwitchers) {
@@ -144,5 +144,5 @@
         }
     }
-    
+
     private static final StringSwitcher FORWARD_BACKWARD = new StringSwitcher("forward", "backward");
     private static final StringSwitcher UP_DOWN = new StringSwitcher("up", "down");
Index: trunk/src/org/openstreetmap/josm/data/AutosaveTask.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/AutosaveTask.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/AutosaveTask.java	(revision 6069)
@@ -275,5 +275,5 @@
         return new File(autosaveDir, osmFile.getName().replaceFirst("[.][^.]+$", ".pid"));
     }
-    
+
     /**
      * Replies the list of .osm files still present in autosave dir, that are not currently managed by another instance of JOSM.
@@ -315,5 +315,5 @@
         return result;
     }
-    
+
     private boolean jvmPerfDataFileExists(final String jvmId) {
         File jvmDir = new File(System.getProperty("java.io.tmpdir") + File.separator + "hsperfdata_" + System.getProperty("user.name"));
@@ -354,5 +354,5 @@
         File backupFile = new File(deletedLayersDir, f.getName());
         File pidFile = getPidFile(f);
-        
+
         if (backupFile.exists()) {
             deletedLayers.remove(backupFile);
Index: trunk/src/org/openstreetmap/josm/data/Bounds.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/Bounds.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/Bounds.java	(revision 6069)
@@ -30,10 +30,10 @@
         return new LatLon(maxLat, maxLon);
     }
-    
+
     public enum ParseMethod {
         MINLAT_MINLON_MAXLAT_MAXLON,
         LEFT_BOTTOM_RIGHT_TOP
     }
-    
+
     /**
      * Construct bounds out of two points
@@ -50,5 +50,5 @@
         this(b, true);
     }
-    
+
     public Bounds(LatLon b, boolean roundToOsmPrecision) {
         // Do not call this(b, b) to avoid GPX performance issue (see #7028) until roundToOsmPrecision() is improved
@@ -124,5 +124,5 @@
             }
         }
-        
+
         switch (parseMethod) {
             case LEFT_BOTTOM_RIGHT_TOP:
@@ -140,5 +140,5 @@
         }
     }
-    
+
     protected static double initLat(double value, boolean roundToOsmPrecision) {
         if (!LatLon.isValidLat(value))
@@ -246,5 +246,5 @@
         extend(b.getMax());
     }
-    
+
     /**
      * Is the given point within this bounds?
@@ -266,5 +266,5 @@
         return notCrossing.minLon <= crossing.maxLon || notCrossing.maxLon >= crossing.minLon;
     }
-    
+
     /**
      * The two bounds intersect? Compared to java Shape.intersects, if does not use
@@ -274,5 +274,5 @@
         if (b.maxLat < minLat || b.minLat > maxLat)
             return false;
-        
+
         if (crosses180thMeridian() && !b.crosses180thMeridian()) {
             return intersectsLonCrossing(this, b);
@@ -294,5 +294,5 @@
         return this.minLon > this.maxLon;
     }
-    
+
     /**
      * Converts the lat/lon bounding box to an object of type Rectangle2D.Double
@@ -320,5 +320,5 @@
      * <p>Replies true, if this bounds are <em>collapsed</em>, i.e. if the min
      * and the max corner are equal.</p>
-     * 
+     *
      * @return true, if this bounds are <em>collapsed</em>
      */
Index: trunk/src/org/openstreetmap/josm/data/CustomConfigurator.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/CustomConfigurator.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/CustomConfigurator.java	(revision 6069)
@@ -58,18 +58,18 @@
 public class CustomConfigurator {
     private static StringBuilder summary = new StringBuilder();
-        
+
     public static void log(String fmt, Object... vars) {
         summary.append(String.format(fmt, vars));
     }
-    
+
     public static void log(String s) {
         summary.append(s);
         summary.append("\n");
     }
-    
+
     public static String getLog() {
         return summary.toString();
     }
-    
+
     public static void readXML(String dir, String fileName) {
         readXML(new File(dir, fileName));
@@ -87,9 +87,9 @@
         new XMLCommandProcessor(prefs).openAndReadXML(file);
         synchronized(CustomConfigurator.class) {
-            CustomConfigurator.class.notifyAll(); 
+            CustomConfigurator.class.notifyAll();
             busy=false;
         }
     }
-    
+
     /**
      * Read configuration script from XML file, modifying main preferences
@@ -99,9 +99,9 @@
         readXML(file, Main.pref);
     }
-    
+
     /**
      * Downloads file to one of JOSM standard folders
      * @param address - URL to download
-     * @param path - file path relative to base where to put downloaded file 
+     * @param path - file path relative to base where to put downloaded file
      * @param base - only "prefs", "cache" and "plugins" allowed for standard folders
      */
@@ -113,5 +113,5 @@
      * Downloads file to one of JOSM standard folders nad unpack it as ZIP/JAR file
      * @param address - URL to download
-     * @param path - file path relative to base where to put downloaded file 
+     * @param path - file path relative to base where to put downloaded file
      * @param base - only "prefs", "cache" and "plugins" allowed for standard folders
      */
@@ -123,5 +123,5 @@
      * Downloads file to arbitrary folder
      * @param address - URL to download
-     * @param path - file path relative to parentDir where to put downloaded file 
+     * @param path - file path relative to parentDir where to put downloaded file
      * @param parentDir - folder where to put file
      * @param mkdir - if true, non-existing directories will be created
@@ -139,10 +139,10 @@
         log("Info: downloading file from %s to %s in background ", parentDir, fOut.getAbsolutePath());
         if (unzip) log("and unpacking it"); else log("");
-        
+
     }
 
     /**
      * Simple function to show messageBox, may be used from JS API and from other code
-     * @param type - 'i','w','e','q','p' for Information, Warning, Error, Question, Message 
+     * @param type - 'i','w','e','q','p' for Information, Warning, Error, Question, Message
      * @param text - message to display, HTML allowed
      */
@@ -158,5 +158,5 @@
         }
     }
-    
+
     /**
      * Simple function for choose window, may be used from JS API and from other code
@@ -214,5 +214,5 @@
         exportPreferencesKeysToFile(fileName, append, keySet);
     }
-    
+
     /**
      * Export specified preferences keys to configuration file
@@ -241,8 +241,8 @@
         if (root==null) return;
         try {
-            
+
             Element newRoot = exportDocument.createElement("config");
             exportDocument.appendChild(newRoot);
-            
+
             Element prefElem = exportDocument.createElement("preferences");
             prefElem.setAttribute("operation", append?"append":"replace");
@@ -270,6 +270,6 @@
         }
     }
-    
-    
+
+
         public static void deleteFile(String path, String base) {
         String dir = getDirectoryByAbbr(base);
@@ -292,10 +292,10 @@
         deleteFileOrDirectory(new File(path));
     }
-    
+
     public static void deleteFileOrDirectory(File f) {
         if (f.isDirectory()) {
             for (File f1: f.listFiles()) {
                 deleteFileOrDirectory(f1);
-            } 
+            }
         }
         try {
@@ -308,5 +308,5 @@
     private static boolean busy=false;
 
-    
+
     public static void pluginOperation(String install, String uninstall, String delete)  {
         final List<String> installList = new ArrayList<String>();
@@ -317,5 +317,5 @@
         Collections.addAll(deleteList, delete.toLowerCase().split(";"));
         installList.remove("");removeList.remove("");deleteList.remove("");
-        
+
         if (!installList.isEmpty()) {
             log("Plugins install: "+installList);
@@ -332,9 +332,9 @@
             public void run() {
                 if (task.isCanceled()) return;
-                synchronized (CustomConfigurator.class) { 
+                synchronized (CustomConfigurator.class) {
                 try { // proceed only after all other tasks were finished
                     while (busy) CustomConfigurator.class.wait();
                 } catch (InterruptedException ex) { }
-                        
+
                 SwingUtilities.invokeLater(new Runnable() {
                     public void run() {
@@ -376,5 +376,5 @@
         Main.worker.submit(r);
     }
-    
+
     private static String getDirectoryByAbbr(String base) {
             String dir;
@@ -402,5 +402,5 @@
         tmp.listOfStructsProperties.putAll( pref.listOfStructsProperties );
         tmp.colornames.putAll( pref.colornames );
-        
+
         return tmp;
     }
@@ -408,11 +408,11 @@
 
     public static class XMLCommandProcessor {
-        
+
         Preferences mainPrefs;
         Map<String,Element> tasksMap = new HashMap<String,Element>();
-        
+
         private boolean lastV; // last If condition result
-        
-        
+
+
         ScriptEngine engine ;
 
@@ -452,5 +452,5 @@
                 engine = new ScriptEngineManager().getEngineByName("rhino");
                 engine.eval("API={}; API.pref={}; API.fragments={};");
-                
+
                 engine.eval("homeDir='"+normalizeDirName(Main.pref.getPreferencesDir()) +"';");
                 engine.eval("josmVersion="+Version.getInstance().getVersion()+";");
@@ -493,9 +493,9 @@
                     if (processRunTaskElement(elem)) return;
                 } else if ("ask".equals(elementName)) {
-                    processAskElement(elem); 
+                    processAskElement(elem);
                 } else if ("if".equals(elementName)) {
-                    processIfElement(elem); 
+                    processIfElement(elem);
                 } else if ("else".equals(elementName)) {
-                    processElseElement(elem); 
+                    processElseElement(elem);
                 } else if ("break".equals(elementName)) {
                     return;
@@ -515,5 +515,5 @@
                     log("Error: Unknown element " + elementName);
                 }
-                
+
             }
         }
@@ -524,6 +524,6 @@
             String oper = evalVars(item.getAttribute("operation"));
             String id = evalVars(item.getAttribute("id"));
-            
-            
+
+
             if ("delete-keys".equals(oper)) {
                 String pattern = evalVars(item.getAttribute("pattern"));
@@ -537,8 +537,8 @@
                 return;
             }
-            
+
             Preferences tmpPref = readPreferencesFromDOMElement(item);
             PreferencesUtils.showPrefs(tmpPref);
-            
+
             if (id.length()>0) {
                 try {
@@ -551,5 +551,5 @@
                 }
             }
-            
+
             if ("replace".equals(oper)) {
                 log("Preferences replace: %d keys: %s\n",
@@ -564,5 +564,5 @@
             }
         }
-        
+
          private void processDeleteElement(Element item) {
             String path = evalVars(item.getAttribute("path"));
@@ -583,5 +583,5 @@
                 return;
             }
-            
+
             if (path.contains("..") || path.startsWith("/") || path.contains(":")) {
                 return; // some basic protection
@@ -593,5 +593,5 @@
             processDownloadOperation(address, path, dir, "true".equals(mkdir), "true".equals(unzip));
         }
-        
+
         private void processPluginInstallElement(Element elem) {
             String install = elem.getAttribute("install");
@@ -600,5 +600,5 @@
             pluginOperation(install, uninstall, delete);
         }
-        
+
         private void processMsgBoxElement(Element elem) {
             String text = evalVars(elem.getAttribute("text"));
@@ -609,5 +609,5 @@
             messageBox(type, text);
         }
-        
+
 
         private void processAskElement(Element elem) {
@@ -617,5 +617,5 @@
             String var = elem.getAttribute("var");
             if (var.length()==0) var="result";
-            
+
             String input = evalVars(elem.getAttribute("input"));
             if ("true".equals(input)) {
@@ -636,5 +636,5 @@
             }
         }
-        
+
         private void processIfElement(Element elem) {
             String realValue = evalVars(elem.getAttribute("test"));
@@ -645,6 +645,6 @@
                 log("Error: Illegal test expression in if: %s=%s\n", elem.getAttribute("test"), realValue);
             }
-                
-            if (v) processXmlFragment(elem); 
+
+            if (v) processXmlFragment(elem);
             lastV = v;
         }
@@ -652,5 +652,5 @@
         private void processElseElement(Element elem) {
             if (!lastV) {
-                processXmlFragment(elem); 
+                processXmlFragment(elem);
             }
         }
@@ -668,6 +668,6 @@
             return false;
         }
-        
-                
+
+
         private void processScriptElement(Element elem) {
             String js = elem.getChildNodes().item(0).getTextContent();
@@ -681,5 +681,5 @@
             log("Script finished");
         }
-        
+
         /**
          * subsititute ${expression} = expression evaluated by JavaScript
@@ -710,5 +710,5 @@
 
                 xformer.transform(new DOMSource(item), out);
-                
+
                 String fragmentWithReplacedVars= evalVars(outputWriter.toString());
 
@@ -717,5 +717,5 @@
             } catch (Exception ex) {
                 log("Error: can not read XML fragment :" + ex.getMessage());
-            } 
+            }
 
             return tmpPref;
@@ -737,5 +737,5 @@
      */
     public static class PreferencesUtils {
-    
+
         private static void replacePreferences(Preferences fragment, Preferences mainpref) {
             // normal prefs
@@ -798,5 +798,5 @@
             }
 
-            /// "maps" 
+            /// "maps"
             for (Entry<String, List<Map<String, String>>> entry : fragment.listOfStructsProperties.entrySet()) {
                 String key = entry.getKey();
@@ -805,5 +805,5 @@
                 if (newMaps == null) continue;
 
-                // get existing properties as list of maps 
+                // get existing properties as list of maps
 
                 for (Map<String, String> map : entry.getValue()) {
@@ -816,5 +816,5 @@
             }
         }
-        
+
         /**
      * Delete items from @param mainpref collections that match items from @param fragment collections
@@ -850,8 +850,8 @@
             String key = entry.getKey();
 
-            
+
             Collection<Collection<String>> newLists = getArray(mainpref, key, true);
             if (newLists == null) continue;
-            
+
             // if items are found in one of lists, remove that list!
             Iterator<Collection<String>> listIterator = newLists.iterator();
@@ -870,5 +870,5 @@
         }
 
-        /// "maps" 
+        /// "maps"
         for (Entry<String, List<Map<String, String>>> entry : fragment.listOfStructsProperties.entrySet()) {
             String key = entry.getKey();
@@ -876,5 +876,5 @@
             List<Map<String, String>> newMaps = getListOfStructs(mainpref, key, true);
             if (newMaps == null) continue;
-                
+
             Iterator<Map<String, String>> mapIterator = newMaps.iterator();
             while (mapIterator.hasNext()) {
@@ -891,5 +891,5 @@
         }
     }
-        
+
     private static void deletePreferenceKeyByPattern(String pattern, Preferences pref) {
         Map<String, Setting> allSettings = pref.getAllSettings();
@@ -909,5 +909,5 @@
         }
     }
-    
+
     private static Collection<String> getCollection(Preferences mainpref, String key, boolean warnUnknownDefault)  {
         Collection<String> existing = mainpref.collectionProperties.get(key);
@@ -921,5 +921,5 @@
                 ? new ArrayList<String>(existing) : new ArrayList<String>(defaults);
     }
-    
+
     private static Collection<Collection<String>> getArray(Preferences mainpref, String key, boolean warnUnknownDefault)  {
         Collection<List<String>> existing = mainpref.arrayProperties.get(key);
@@ -947,6 +947,6 @@
                 ? new ArrayList<Map<String, String>>(existing) : new ArrayList<Map<String, String>>(defaults);
     }
-    
-    
+
+
 
     private static void defaultUnknownWarning(String key) {
@@ -965,5 +965,5 @@
         System.out.println("maps: " + tmpPref.listOfStructsProperties);
     }
-    
+
     private static void modifyPreferencesByScript(ScriptEngine engine, Preferences tmpPref, String js) throws ScriptException {
         loadPrefsToJS(engine, tmpPref, "API.pref", true);
@@ -972,5 +972,5 @@
     }
 
-    
+
      /**
      * Convert JavaScript preferences object to preferences data structures
@@ -978,5 +978,5 @@
      * @param tmpPref - preferences to fill from JS
      * @param varInJS - JS variable name, where preferences are stored
-     * @throws ScriptException 
+     * @throws ScriptException
      */
     public static void readPrefsFromJS(ScriptEngine engine, Preferences tmpPref, String varInJS) throws ScriptException {
@@ -1058,8 +1058,8 @@
             tmpPref.listOfStructsProperties.put(e.getKey(), e.getValue());
         }
-            
-    }
-    
-    
+
+    }
+
+
     /**
      * Convert preferences data structures to JavaScript object
@@ -1068,5 +1068,5 @@
      * @param whereToPutInJS - variable name to store preferences in JS
      * @param includeDefaults - include known default values to JS objects
-     * @throws ScriptException 
+     * @throws ScriptException
      */
     public static void loadPrefsToJS(ScriptEngine engine, Preferences tmpPref, String whereToPutInJS, boolean includeDefaults) throws ScriptException {
@@ -1151,5 +1151,5 @@
             whereToPutInJS+"[String(e.getKey())] = jslistmap;"+
             "}\n";
-                
+
         //System.out.println("map1: "+stringMap );
         //System.out.println("lists1: "+listMap );
@@ -1159,5 +1159,5 @@
         // Execute conversion script
         engine.eval(init);
-            
+
     }
     }
Index: trunk/src/org/openstreetmap/josm/data/Preferences.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/Preferences.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/Preferences.java	(revision 6069)
@@ -1346,5 +1346,5 @@
         // Workaround to fix another Java bug
         // Force Java 7 to use old sorting algorithm of Arrays.sort (fix #8712).
-        // See Oracle bug database: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7075600 
+        // See Oracle bug database: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7075600
         // and http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6923200
         if (Main.pref.getBoolean("jdk.Arrays.useLegacyMergeSort", !Version.getInstance().isLocalBuild())) {
@@ -1352,5 +1352,5 @@
         }
     }
-    
+
     private void updateSystemProperty(String key, String value) {
         if (value != null) {
@@ -1655,6 +1655,6 @@
         if (b==null) return false;
         if (a==b) return true;
-        
-        if (a instanceof StringSetting) 
+
+        if (a instanceof StringSetting)
             return (a.getValue().equals(b.getValue()));
         if (a instanceof ListSetting) {
Index: trunk/src/org/openstreetmap/josm/data/conflict/Conflict.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/conflict/Conflict.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/conflict/Conflict.java	(revision 6069)
@@ -24,5 +24,5 @@
     private final T their;
     private final boolean isMyDeleted;
-    
+
     // mergedMap is only set if the conflict results from merging two layers
     private Map<PrimitiveId, PrimitiveId> mergedMap;
Index: trunk/src/org/openstreetmap/josm/data/coor/CachedLatLon.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/coor/CachedLatLon.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/coor/CachedLatLon.java	(revision 6069)
@@ -7,9 +7,9 @@
 /**
  * LatLon class that maintains a cache of projected EastNorth coordinates.
- * 
+ *
  * This class is convenient to use, but has relatively high memory costs.
- * It keeps a pointer to the last known projection in order to detect projection 
+ * It keeps a pointer to the last known projection in order to detect projection
  * changes.
- * 
+ *
  * Node and WayPoint have another, optimized, cache for projected coordinates.
  */
@@ -47,5 +47,5 @@
     /**
      * Replies the projected east/north coordinates.
-     * 
+     *
      * @return the internally cached east/north coordinates. null, if the globally defined projection is null
      */
Index: trunk/src/org/openstreetmap/josm/data/coor/EastNorth.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/coor/EastNorth.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/coor/EastNorth.java	(revision 6069)
@@ -60,8 +60,8 @@
         return hd;
     }
-    
+
     /**
      * Replies true if east and north are different from Double.NaN
-     * 
+     *
      * @return true if east and north are different from Double.NaN
      */
Index: trunk/src/org/openstreetmap/josm/data/coor/LatLon.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/coor/LatLon.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/coor/LatLon.java	(revision 6069)
@@ -46,5 +46,5 @@
         cDdFormatter.applyPattern("###0.0######");
     }
-    
+
     private static final String cDms60 = cDmsSecondFormatter.format(60.0);
     private static final String cDms00 = cDmsSecondFormatter.format( 0.0);
@@ -115,9 +115,9 @@
         int tMinutes = (int) tTmpMinutes;
         double tSeconds = (tTmpMinutes - tMinutes) * 60;
-        
+
         String sDegrees = Integer.toString(tDegree);
         String sMinutes = cDmsMinuteFormatter.format(tMinutes);
         String sSeconds = cDmsSecondFormatter.format(tSeconds);
-        
+
         if (sSeconds.equals(cDms60)) {
             sSeconds = cDms00;
@@ -142,13 +142,13 @@
         int tDegree = (int) tAbsCoord;
         double tMinutes = (tAbsCoord - tDegree) * 60;
-        
+
         String sDegrees = Integer.toString(tDegree);
         String sMinutes = cDmMinuteFormatter.format(tMinutes);
-        
+
         if (sMinutes.equals(cDm60)) {
             sMinutes = cDm00;
             sDegrees = Integer.toString(tDegree+1);
         }
-        
+
         return sDegrees + "\u00B0" + sMinutes + "\'";
     }
Index: trunk/src/org/openstreetmap/josm/data/gpx/GpxData.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/gpx/GpxData.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/gpx/GpxData.java	(revision 6069)
@@ -78,5 +78,5 @@
      * The bounds are not stored internally, but recalculated every time
      * this function is called.
-     * 
+     *
      * FIXME might perhaps use visitor pattern?
      */
@@ -124,5 +124,5 @@
         return result;
     }
-    
+
      /**
      * Makes a WayPoint at the projection of point P onto the track providing P is less than
Index: trunk/src/org/openstreetmap/josm/data/gpx/IWithAttributes.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/gpx/IWithAttributes.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/gpx/IWithAttributes.java	(revision 6069)
@@ -19,9 +19,9 @@
 
     /**
-     * Returns the String value to which the specified key is mapped, 
+     * Returns the String value to which the specified key is mapped,
      * or {@code null} if this map contains no String mapping for the key.
-     *  
+     *
      * @param key the key whose associated value is to be returned
-     * @return the String value to which the specified key is mapped, 
+     * @return the String value to which the specified key is mapped,
      *         or {@code null} if this map contains no String mapping for the key
      */
Index: trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java	(revision 6069)
@@ -48,5 +48,5 @@
             return urlString;
         }
-        
+
         public static ImageryType fromUrlString(String s) {
             for (ImageryType type : ImageryType.values()) {
Index: trunk/src/org/openstreetmap/josm/data/imagery/Shape.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/imagery/Shape.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/imagery/Shape.java	(revision 6069)
@@ -21,5 +21,5 @@
 
     private List<Coordinate> coords = new ArrayList<Coordinate>();
-    
+
     public Shape(String asString, String separator) throws IllegalArgumentException {
         CheckParameterUtil.ensureParameterNotNull(asString, "asString");
@@ -49,5 +49,5 @@
         return coords;
     }
-    
+
     public boolean contains(LatLon latlon) {
         if (latlon == null)
@@ -65,5 +65,5 @@
 
         double lat, lon;
-        
+
         try {
             lat = Double.parseDouble(sLat);
@@ -81,5 +81,5 @@
             throw new IllegalArgumentException(MessageFormat.format("Illegal double value ''{0}''", sLon));
         }
-        
+
         coords.add(new Coordinate(LatLon.roundToOsmPrecision(lat), LatLon.roundToOsmPrecision(lon)));
     }
Index: trunk/src/org/openstreetmap/josm/data/imagery/types/EntryType.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/imagery/types/EntryType.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/imagery/types/EntryType.java	(revision 6069)
@@ -21,7 +21,7 @@
 /**
  * <p>Java class for entry complex type.
- * 
+ *
  * <p>The following schema fragment specifies the expected content contained within this class.
- * 
+ *
  * <pre>
  * &lt;complexType name="entry">
@@ -40,6 +40,6 @@
  * &lt;/complexType>
  * </pre>
- * 
- * 
+ *
+ *
  */
 @XmlAccessorType(XmlAccessType.FIELD)
@@ -70,5 +70,5 @@
     /**
      * Gets the value of the pixelPerDegree property.
-     * 
+     *
      */
     public double getPixelPerDegree() {
@@ -78,5 +78,5 @@
     /**
      * Sets the value of the pixelPerDegree property.
-     * 
+     *
      */
     public void setPixelPerDegree(double value) {
@@ -86,5 +86,5 @@
     /**
      * Gets the value of the east property.
-     * 
+     *
      */
     public double getEast() {
@@ -94,5 +94,5 @@
     /**
      * Sets the value of the east property.
-     * 
+     *
      */
     public void setEast(double value) {
@@ -102,5 +102,5 @@
     /**
      * Gets the value of the north property.
-     * 
+     *
      */
     public double getNorth() {
@@ -110,5 +110,5 @@
     /**
      * Sets the value of the north property.
-     * 
+     *
      */
     public void setNorth(double value) {
@@ -118,9 +118,9 @@
     /**
      * Gets the value of the lastUsed property.
-     * 
+     *
      * @return
      *     possible object is
      *     {@link String }
-     * 
+     *
      */
     public Calendar getLastUsed() {
@@ -130,9 +130,9 @@
     /**
      * Sets the value of the lastUsed property.
-     * 
+     *
      * @param value
      *     allowed object is
      *     {@link String }
-     * 
+     *
      */
     public void setLastUsed(Calendar value) {
@@ -142,9 +142,9 @@
     /**
      * Gets the value of the lastModified property.
-     * 
+     *
      * @return
      *     possible object is
      *     {@link String }
-     * 
+     *
      */
     public Calendar getLastModified() {
@@ -154,9 +154,9 @@
     /**
      * Sets the value of the lastModified property.
-     * 
+     *
      * @param value
      *     allowed object is
      *     {@link String }
-     * 
+     *
      */
     public void setLastModified(Calendar value) {
@@ -166,9 +166,9 @@
     /**
      * Gets the value of the filename property.
-     * 
+     *
      * @return
      *     possible object is
      *     {@link String }
-     * 
+     *
      */
     public String getFilename() {
@@ -178,9 +178,9 @@
     /**
      * Sets the value of the filename property.
-     * 
+     *
      * @param value
      *     allowed object is
      *     {@link String }
-     * 
+     *
      */
     public void setFilename(String value) {
Index: trunk/src/org/openstreetmap/josm/data/imagery/types/ObjectFactory.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/imagery/types/ObjectFactory.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/imagery/types/ObjectFactory.java	(revision 6069)
@@ -1,7 +1,7 @@
 //
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
-// Any modifications to this file will be lost upon recompilation of the source schema. 
-// Generated on: 2011.01.09 at 07:33:18 PM CET 
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2011.01.09 at 07:33:18 PM CET
 //
 
@@ -13,16 +13,16 @@
 
 /**
- * This object contains factory methods for each 
- * Java content interface and Java element interface 
- * generated in the org.openstreetmap.josm.data.imagery.types package. 
- * <p>An ObjectFactory allows you to programatically 
- * construct new instances of the Java representation 
- * for XML content. The Java representation of XML 
- * content can consist of schema derived interfaces 
- * and classes representing the binding of schema 
- * type definitions, element declarations and model 
- * groups.  Factory methods for each of these are 
+ * This object contains factory methods for each
+ * Java content interface and Java element interface
+ * generated in the org.openstreetmap.josm.data.imagery.types package.
+ * <p>An ObjectFactory allows you to programatically
+ * construct new instances of the Java representation
+ * for XML content. The Java representation of XML
+ * content can consist of schema derived interfaces
+ * and classes representing the binding of schema
+ * type definitions, element declarations and model
+ * groups.  Factory methods for each of these are
  * provided in this class.
- * 
+ *
  */
 @XmlRegistry
@@ -32,5 +32,5 @@
     /**
      * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.openstreetmap.josm.data.imagery.types
-     * 
+     *
      */
     public ObjectFactory() {
@@ -39,5 +39,5 @@
     /**
      * Create an instance of {@link WmsCacheType }
-     * 
+     *
      */
     public WmsCacheType createWmsCacheType() {
@@ -47,5 +47,5 @@
     /**
      * Create an instance of {@link ProjectionType }
-     * 
+     *
      */
     public ProjectionType createProjectionType() {
@@ -55,5 +55,5 @@
     /**
      * Create an instance of {@link EntryType }
-     * 
+     *
      */
     public EntryType createEntryType() {
Index: trunk/src/org/openstreetmap/josm/data/imagery/types/ProjectionType.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/imagery/types/ProjectionType.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/imagery/types/ProjectionType.java	(revision 6069)
@@ -1,7 +1,7 @@
 //
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
-// Any modifications to this file will be lost upon recompilation of the source schema. 
-// Generated on: 2011.01.09 at 07:33:18 PM CET 
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2011.01.09 at 07:33:18 PM CET
 //
 
@@ -19,7 +19,7 @@
 /**
  * <p>Java class for projection complex type.
- * 
+ *
  * <p>The following schema fragment specifies the expected content contained within this class.
- * 
+ *
  * <pre>
  * &lt;complexType name="projection">
@@ -35,6 +35,6 @@
  * &lt;/complexType>
  * </pre>
- * 
- * 
+ *
+ *
  */
 @XmlAccessorType(XmlAccessType.FIELD)
@@ -52,5 +52,5 @@
     /**
      * Gets the value of the entry property.
-     * 
+     *
      * <p>
      * This accessor method returns a reference to the live list,
@@ -58,5 +58,5 @@
      * returned list will be present inside the JAXB object.
      * This is why there is not a <CODE>set</CODE> method for the entry property.
-     * 
+     *
      * <p>
      * For example, to add a new item, do as follows:
@@ -64,11 +64,11 @@
      *    getEntry().add(newItem);
      * </pre>
-     * 
-     * 
+     *
+     *
      * <p>
      * Objects of the following type(s) are allowed in the list
      * {@link EntryType }
-     * 
-     * 
+     *
+     *
      */
     public List<EntryType> getEntry() {
@@ -81,9 +81,9 @@
     /**
      * Gets the value of the name property.
-     * 
+     *
      * @return
      *     possible object is
      *     {@link String }
-     *     
+     *
      */
     public String getName() {
@@ -93,9 +93,9 @@
     /**
      * Sets the value of the name property.
-     * 
+     *
      * @param value
      *     allowed object is
      *     {@link String }
-     *     
+     *
      */
     public void setName(String value) {
@@ -105,9 +105,9 @@
     /**
      * Gets the value of the cacheDirectory property.
-     * 
+     *
      * @return
      *     possible object is
      *     {@link String }
-     *     
+     *
      */
     public String getCacheDirectory() {
@@ -117,9 +117,9 @@
     /**
      * Sets the value of the cacheDirectory property.
-     * 
+     *
      * @param value
      *     allowed object is
      *     {@link String }
-     *     
+     *
      */
     public void setCacheDirectory(String value) {
Index: trunk/src/org/openstreetmap/josm/data/imagery/types/WmsCacheType.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/imagery/types/WmsCacheType.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/imagery/types/WmsCacheType.java	(revision 6069)
@@ -1,7 +1,7 @@
 //
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
-// Any modifications to this file will be lost upon recompilation of the source schema. 
-// Generated on: 2011.01.09 at 07:33:18 PM CET 
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2011.01.09 at 07:33:18 PM CET
 //
 
@@ -20,7 +20,7 @@
 /**
  * <p>Java class for anonymous complex type.
- * 
+ *
  * <p>The following schema fragment specifies the expected content contained within this class.
- * 
+ *
  * <pre>
  * &lt;complexType>
@@ -36,6 +36,6 @@
  * &lt;/complexType>
  * </pre>
- * 
- * 
+ *
+ *
  */
 @XmlAccessorType(XmlAccessType.FIELD)
@@ -54,5 +54,5 @@
     /**
      * Gets the value of the projection property.
-     * 
+     *
      * <p>
      * This accessor method returns a reference to the live list,
@@ -60,5 +60,5 @@
      * returned list will be present inside the JAXB object.
      * This is why there is not a <CODE>set</CODE> method for the projection property.
-     * 
+     *
      * <p>
      * For example, to add a new item, do as follows:
@@ -66,11 +66,11 @@
      *    getProjection().add(newItem);
      * </pre>
-     * 
-     * 
+     *
+     *
      * <p>
      * Objects of the following type(s) are allowed in the list
      * {@link ProjectionType }
-     * 
-     * 
+     *
+     *
      */
     public List<ProjectionType> getProjection() {
@@ -83,5 +83,5 @@
     /**
      * Gets the value of the tileSize property.
-     * 
+     *
      */
     public int getTileSize() {
@@ -91,5 +91,5 @@
     /**
      * Sets the value of the tileSize property.
-     * 
+     *
      */
     public void setTileSize(int value) {
@@ -99,5 +99,5 @@
     /**
      * Gets the value of the totalFileSize property.
-     * 
+     *
      */
     public int getTotalFileSize() {
@@ -107,5 +107,5 @@
     /**
      * Sets the value of the totalFileSize property.
-     * 
+     *
      */
     public void setTotalFileSize(int value) {
Index: trunk/src/org/openstreetmap/josm/data/imagery/types/package-info.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/imagery/types/package-info.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/imagery/types/package-info.java	(revision 6069)
@@ -1,7 +1,7 @@
 //
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
-// Any modifications to this file will be lost upon recompilation of the source schema. 
-// Generated on: 2011.01.09 at 07:33:18 PM CET 
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2011.01.09 at 07:33:18 PM CET
 //
 
Index: trunk/src/org/openstreetmap/josm/data/oauth/OAuthParameters.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/oauth/OAuthParameters.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/oauth/OAuthParameters.java	(revision 6069)
@@ -64,5 +64,5 @@
      * at the given API url. URL parameters are only set if the URL equals {@link OsmApi#DEFAULT_API_URL}
      * or references the domain "dev.openstreetmap.org", otherwise they may be <code>null</code>.
-     * 
+     *
      * @param apiUrl The API URL for which the OAuth default parameters are created. If null or empty, the default OSM API url is used.
      * @return a set of default parameters for the given {@code apiUrl}
@@ -133,5 +133,5 @@
     /**
      * Constructs a new, unitialized, {@code OAuthParameters}.
-     * 
+     *
      * @see #createDefault
      * @see #createFromPreferences
@@ -162,5 +162,5 @@
         return consumerKey;
     }
-    
+
     /**
      * Sets the consumer key.
@@ -170,7 +170,7 @@
         this.consumerKey = consumerKey;
     }
-    
-    /**
-     * Gets the consumer secret. 
+
+    /**
+     * Gets the consumer secret.
      * @return The consumer secret
      */
@@ -178,5 +178,5 @@
         return consumerSecret;
     }
-    
+
     /**
      * Sets the consumer secret.
@@ -186,5 +186,5 @@
         this.consumerSecret = consumerSecret;
     }
-    
+
     /**
      * Gets the request token URL.
@@ -194,5 +194,5 @@
         return requestTokenUrl;
     }
-    
+
     /**
      * Sets the request token URL.
@@ -202,5 +202,5 @@
         this.requestTokenUrl = requestTokenUrl;
     }
-    
+
     /**
      * Gets the access token URL.
@@ -210,5 +210,5 @@
         return accessTokenUrl;
     }
-    
+
     /**
      * Sets the access token URL.
@@ -218,5 +218,5 @@
         this.accessTokenUrl = accessTokenUrl;
     }
-    
+
     /**
      * Gets the authorise URL.
@@ -226,5 +226,5 @@
         return authoriseUrl;
     }
-    
+
     /**
      * Sets the authorise URL.
Index: trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java	(revision 6069)
@@ -658,7 +658,7 @@
     public boolean hasSameTags(OsmPrimitive other) {
         // We cannot directly use Arrays.equals(keys, other.keys) as keys is not ordered by key
-        // but we can at least check if both arrays are null or of the same size before creating 
+        // but we can at least check if both arrays are null or of the same size before creating
         // and comparing the key maps (costly operation, see #7159)
-        return (keys == null && other.keys == null) 
+        return (keys == null && other.keys == null)
             || (keys != null && other.keys != null && keys.length == other.keys.length && (keys.length == 0 || getKeys().equals(other.getKeys())));
     }
Index: trunk/src/org/openstreetmap/josm/data/osm/BBox.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/BBox.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/osm/BBox.java	(revision 6069)
@@ -175,5 +175,5 @@
         return new LatLon(ymin, xmax);
     }
-    
+
     public LatLon getCenter() {
         return new LatLon(ymin + (ymax-ymin)/2.0, xmin + (xmax-xmin)/2.0);
Index: trunk/src/org/openstreetmap/josm/data/osm/Changeset.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/Changeset.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/osm/Changeset.java	(revision 6069)
@@ -17,8 +17,8 @@
  */
 public final class Changeset implements Tagged {
-    
+
     /** The maximum changeset comment text length allowed by API 0.6 **/
     public static final int MAX_COMMENT_LENGTH = 255;
-    
+
     /** the changeset id */
     private int id;
Index: trunk/src/org/openstreetmap/josm/data/osm/DataSetMerger.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/DataSetMerger.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/osm/DataSetMerger.java	(revision 6069)
@@ -135,5 +135,5 @@
         return targetDataSet.getPrimitiveById(targetId);
     }
-    
+
     protected void addConflict(Conflict<?> c) {
         c.setMergedMap(mergedMap);
@@ -221,5 +221,5 @@
         }
     }
-    
+
     private final void resetPrimitive(OsmPrimitive osm) {
         if (osm instanceof Way) {
Index: trunk/src/org/openstreetmap/josm/data/osm/Node.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/Node.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/osm/Node.java	(revision 6069)
@@ -63,5 +63,5 @@
     /**
      * <p>Replies the projected east/north coordinates.</p>
-     * 
+     *
      * <p>Uses the {@link Main#getProjection() global projection} to project the lan/lon-coordinates.
      * Internally caches the projected coordinates.</p>
@@ -69,10 +69,10 @@
      * <p><strong>Caveat:</strong> doesn't listen to projection changes. Clients must
      * {@link #invalidateEastNorthCache() invalidate the internal cache}.</p>
-     * 
+     *
      * <p>Replies {@code null} if this node doesn't know lat/lon-coordinates, i.e. because it is an incomplete node.
-     * 
+     *
      * @return the east north coordinates or {@code null}
      * @see #invalidateEastNorthCache()
-     * 
+     *
      */
     @Override
@@ -305,5 +305,5 @@
     public void updatePosition() {
     }
-    
+
     @Override
     public boolean isDrawable() {
@@ -314,7 +314,7 @@
     /**
      * Check whether this node connects 2 ways.
-     * 
+     *
      * @return true if isReferredByWays(2) returns true
-     * @see #isReferredByWays(int) 
+     * @see #isReferredByWays(int)
      */
     public boolean isConnectionNode() {
Index: trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java	(revision 6069)
@@ -30,5 +30,5 @@
 /**
  * The base class for OSM objects ({@link Node}, {@link Way}, {@link Relation}).
- * 
+ *
  * It can be created, deleted and uploaded to the OSM-Server.
  *
@@ -620,5 +620,5 @@
     private static volatile Collection<String> uninteresting = null;
     private static volatile Collection<String> discardable = null;
-    
+
     /**
      * Returns a list of "uninteresting" keys that do not make an object
@@ -658,5 +658,5 @@
         return discardable;
     }
-    
+
     /**
      * Returns a list of "work in progress" keys that do not make an object
@@ -762,5 +762,5 @@
         return (flags & FLAG_TAGGED) != 0;
     }
-    
+
     /**
      * Determines if this object is considered "annotated". To be "annotated", an object
Index: trunk/src/org/openstreetmap/josm/data/osm/RelationMemberData.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/RelationMemberData.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/osm/RelationMemberData.java	(revision 6069)
@@ -21,9 +21,9 @@
         return memberId;
     }
-    
+
     public String getRole() {
         return role;
     }
-    
+
     public OsmPrimitiveType getMemberType() {
         return memberType;
Index: trunk/src/org/openstreetmap/josm/data/osm/Way.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/Way.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/osm/Way.java	(revision 6069)
@@ -105,5 +105,5 @@
         return nodes.length;
     }
-    
+
     /**
      * Replies the real number of nodes in this way (full number of nodes minus one if this way is closed)
@@ -111,5 +111,5 @@
      * @return the real number of nodes in this way.
      * @since 5847
-     * 
+     *
      * @see #getNodesCount()
      * @see #isClosed()
@@ -183,7 +183,7 @@
 
     /**
-     * Replies the ordered {@link List} of chunks of this way. Each chunk is replied as a {@link Pair} of {@link Node nodes}. 
-     * @param sort If true, the nodes of each pair are sorted as defined by {@link Pair#sort}. 
-     *             If false, Pair.a and Pair.b are in the way order (i.e for a given Pair(n), Pair(n-1).b == Pair(n).a, Pair(n).b == Pair(n+1).a, etc.) 
+     * Replies the ordered {@link List} of chunks of this way. Each chunk is replied as a {@link Pair} of {@link Node nodes}.
+     * @param sort If true, the nodes of each pair are sorted as defined by {@link Pair#sort}.
+     *             If false, Pair.a and Pair.b are in the way order (i.e for a given Pair(n), Pair(n-1).b == Pair(n).a, Pair(n).b == Pair(n+1).a, etc.)
      * @return The ordered list of chunks of this way.
      * @since 3348
@@ -494,5 +494,5 @@
         return nodes.length >= 3 && nodes[nodes.length-1] == nodes[0];
     }
-    
+
     /**
      * Determines if this way denotes an area (closed way with at least three distinct nodes).
@@ -682,5 +682,5 @@
     /**
      * Tests if this way is a oneway.
-     * @return {@code 1} if the way is a oneway, 
+     * @return {@code 1} if the way is a oneway,
      *         {@code -1} if the way is a reversed oneway,
      *         {@code 0} otherwise.
Index: trunk/src/org/openstreetmap/josm/data/osm/history/HistoryNode.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/history/HistoryNode.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/osm/history/HistoryNode.java	(revision 6069)
@@ -15,5 +15,5 @@
  */
 public class HistoryNode extends HistoryOsmPrimitive {
-    
+
     /** the coordinates. May be null for deleted nodes */
     private LatLon coords;
@@ -21,5 +21,5 @@
     /**
      * Constructs a new {@code HistoryNode}.
-     * 
+     *
      * @param id the id (> 0 required)
      * @param version the version (> 0 required)
@@ -38,5 +38,5 @@
      * Constructs a new {@code HistoryNode} with a configurable checking of historic parameters.
      * This is needed to build virtual HistoryNodes for modified nodes, which do not have a timestamp and a changeset id.
-     * 
+     *
      * @param id the id (> 0 required)
      * @param version the version (> 0 required)
Index: trunk/src/org/openstreetmap/josm/data/osm/history/HistoryOsmPrimitive.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/history/HistoryOsmPrimitive.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/osm/history/HistoryOsmPrimitive.java	(revision 6069)
@@ -88,5 +88,5 @@
         tags = new HashMap<String, String>();
     }
-    
+
     /**
      * Constructs a new {@code HistoryOsmPrimitive} from an existing {@link OsmPrimitive}.
Index: trunk/src/org/openstreetmap/josm/data/osm/history/HistoryWay.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/history/HistoryWay.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/osm/history/HistoryWay.java	(revision 6069)
@@ -25,5 +25,5 @@
     /**
      * Constructs a new {@code HistoryWay}.
-     * 
+     *
      * @param id the id (> 0 required)
      * @param version the version (> 0 required)
@@ -41,5 +41,5 @@
      * Constructs a new {@code HistoryWay} with a configurable checking of historic parameters.
      * This is needed to build virtual HistoryWays for modified ways, which do not have a timestamp and a changeset id.
-     * 
+     *
      * @param id the id (> 0 required)
      * @param version the version (> 0 required)
@@ -58,5 +58,5 @@
     /**
      * Constructs a new {@code HistoryWay} with a given list of node ids.
-     * 
+     *
      * @param id the id (> 0 required)
      * @param version the version (> 0 required)
Index: trunk/src/org/openstreetmap/josm/data/osm/visitor/AllNodesVisitor.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/visitor/AllNodesVisitor.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/osm/visitor/AllNodesVisitor.java	(revision 6069)
@@ -48,5 +48,5 @@
             if (m.isNode()) visit(m.getNode());
     }
-    
+
     /**
      * Replies all nodes contained by the given primitives
Index: trunk/src/org/openstreetmap/josm/data/osm/visitor/PrimitiveVisitor.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/visitor/PrimitiveVisitor.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/osm/visitor/PrimitiveVisitor.java	(revision 6069)
@@ -11,5 +11,5 @@
  */
 public interface PrimitiveVisitor {
-    
+
     /**
      * Visiting call for points.
@@ -17,5 +17,5 @@
      */
     void visit(INode n);
-    
+
     /**
      * Visiting call for lines.
Index: trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/AbstractMapRenderer.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/AbstractMapRenderer.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/AbstractMapRenderer.java	(revision 6069)
@@ -28,5 +28,5 @@
     /** the map viewport - provides projection and hit detection functionality */
     protected NavigatableComponent nc;
-    
+
     /** if true, the paint visitor shall render OSM objects such that they
      * look inactive. Example: rendering of data in an inactive layer using light gray as color only. */
@@ -50,8 +50,8 @@
     /** Preference: minimum space (displayed way length) to display segment numbers */
     protected int segmentNumberSpace;
-    
+
     /**
      * <p>Creates an abstract paint visitor</p>
-     * 
+     *
      * @param g the graphics context. Must not be null.
      * @param nc the map viewport. Must not be null.
@@ -68,5 +68,5 @@
         this.isInactiveMode = isInactiveMode;
     }
-    
+
     /**
      * Draw the node as small rectangle with the given color.
@@ -80,5 +80,5 @@
      * Draw an number of the order of the two consecutive nodes within the
      * parents way
-     * 
+     *
      * @param p1 First point of the way segment.
      * @param p2 Second point of the way segment.
@@ -102,5 +102,5 @@
         }
     }
-    
+
     /**
      * Draws virtual nodes.
@@ -134,5 +134,5 @@
             g.draw(path);
         } catch (ArrayIndexOutOfBoundsException e) {
-            // Silently ignore any ArrayIndexOutOfBoundsException that may be raised 
+            // Silently ignore any ArrayIndexOutOfBoundsException that may be raised
             // if the way has changed while being rendered (fix #7979)
             // TODO: proper solution ?
@@ -142,5 +142,5 @@
         }
     }
-    
+
     /**
      * Reads the color definitions from preferences. This function is <code>public</code>, so that
@@ -154,5 +154,5 @@
         this.highlightColor = PaintColors.HIGHLIGHT.get();
     }
-    
+
     /**
      * Reads all the settings from preferences. Calls the @{link #getColors}
@@ -167,5 +167,5 @@
         getColors();
     }
-    
+
     /**
      * Checks if a way segemnt is large enough for additional information display.
@@ -181,5 +181,5 @@
         return (xd+yd > space);
     }
-    
+
     /**
      * Checks if segment is visible in display.
@@ -196,5 +196,5 @@
         return true;
     }
-    
+
     /**
      * Creates path for drawing virtual nodes for one way.
Index: trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapRendererFactory.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapRendererFactory.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapRendererFactory.java	(revision 6069)
@@ -21,5 +21,5 @@
  * <p>MapRendererFactory manages a list of map renderer classes and associated
  * meta data (display name, description).</p>
- * 
+ *
  * <p>Plugins can implement and supply their own map renderers.</p>
  * <strong>Sample code in a plugin</strong>
@@ -28,10 +28,10 @@
  *    // ....
  * }
- * 
+ *
  * // to be called when the plugin is created
  * MapRendererFactory factory = MapRendererFactory.getInstance();
  * factory.register(MyMapRenderer.class, "My map renderer", "This is is a fast map renderer");
  * factory.activate(MyMapRenderer.class);
- * 
+ *
  * </pre>
  *
@@ -40,5 +40,5 @@
 
     /** preference key for the renderer class name. Default: class name for {@link StyledMapRenderer}
-     * 
+     *
      */
     static public final String PREF_KEY_RENDERER_CLASS_NAME = "mappaint.renderer-class-name";
@@ -161,5 +161,5 @@
      * <p>Replies true, if {@code Renderer} is already a registered map renderer
      * class.</p>
-     * 
+     *
      * @param renderer the map renderer class. Must not be null.
      * @return true, if {@code Renderer} is already a registered map renderer
@@ -177,5 +177,5 @@
     /**
      * <p>Registers a map renderer class.</p>
-     * 
+     *
      * @param renderer the map renderer class. Must not be null.
      * @param displayName the display name to be displayed in UIs (i.e. in the preference dialog)
@@ -201,7 +201,7 @@
      * <p>If the respective class is also the active renderer, the renderer is reset
      * to the default renderer.</p>
-     * 
+     *
      * @param renderer the map renderer class. Must not be null.
-     * 
+     *
      */
     public void unregister(Class<? extends AbstractMapRenderer> renderer) {
@@ -225,9 +225,9 @@
      *
      * <p>The renderer class must already be registered.</p>
-     * 
+     *
      * @param renderer the map renderer class. Must not be null.
      * @throws IllegalArgumentException thrown if {@code renderer} is null
      * @throws IllegalStateException thrown if {@code renderer} isn't registered yet
-     * 
+     *
      */
     public void activate(Class<? extends AbstractMapRenderer> renderer) throws IllegalArgumentException, IllegalStateException{
@@ -247,5 +247,5 @@
      *
      * @throws IllegalStateException thrown if the default renderer {@link StyledMapRenderer} isn't registered
-     * 
+     *
      */
     public void activateDefault() throws IllegalStateException{
@@ -283,5 +283,5 @@
     /**
      * <p>Replies the (unmodifiable) list of map renderer descriptors.</p>
-     * 
+     *
      * @return the descriptors
      */
@@ -293,10 +293,10 @@
      * <p>Replies true, if currently the wireframe map renderer is active. Otherwise,
      * false.</p>
-     * 
+     *
      * <p>There is a specific method for {@link WireframeMapRenderer} for legacy support.
      * Until 03/2011 there were only two possible map renderers in JOSM: the wireframe
      * renderer and the styled renderer. For the time being there are still UI elements
      * (menu entries, etc.) which toggle between these two renderers only.</p>
-     * 
+     *
      * @return true, if currently the wireframe map renderer is active. Otherwise,
      * false
Index: trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/Rendering.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/Rendering.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/Rendering.java	(revision 6069)
@@ -11,5 +11,5 @@
     /**
      * <p>Renders the OSM data in {@code data}</p>
-     * 
+     *
      * @param data the data set to be rendered
      * @param renderVirtualNodes if true, renders virtual nodes. Otherwise, ignores them.
Index: trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java	(revision 6069)
@@ -222,5 +222,5 @@
         }
     }
-    
+
     private static class StyleRecord implements Comparable<StyleRecord> {
         final ElemStyle style;
@@ -310,5 +310,5 @@
     private Color relationSelectedColor;
     private Color highlightColorTransparent;
-    
+
     private static final int FLAG_NORMAL = 0;
     private static final int FLAG_DISABLED = 1;
@@ -321,5 +321,5 @@
 
     private Collection<WaySegment> highlightWaySegments;
-    
+
     // highlight customization fields
     private int highlightLineWidth;
@@ -327,5 +327,5 @@
     private int widerHighlight;
     private int highlightStep;
-    
+
     //flag that activate wider highlight mode
     private boolean useWiderHighlight;
@@ -441,5 +441,5 @@
         }
     }
-    
+
     protected void drawArea(OsmPrimitive osm, Path2D.Double path, Color color, MapImage fillImage, TextElement text) {
 
@@ -514,5 +514,5 @@
         }
     }
-    
+
     public void drawArea(Relation r, Color color, MapImage fillImage, TextElement text) {
         Multipolygon multipolygon = MultipolygonCache.getInstance().get(nc, r);
@@ -529,5 +529,5 @@
         }
     }
-    
+
     public void drawArea(Way w, Color color, MapImage fillImage, TextElement text) {
         drawArea(w, getPath(w), color, fillImage, text);
@@ -732,5 +732,5 @@
         }
     }
-    
+
     public void drawNodeIcon(Node n, Image img, float alpha, boolean selected, boolean member) {
         Point p = nc.getPoint(n);
@@ -760,5 +760,5 @@
         }
     }
-    
+
     public void drawNodeSymbol(Node n, Symbol s, Color fillColor, Color strokeColor) {
         Point p = nc.getPoint(n);
@@ -850,5 +850,5 @@
         StyledMapRenderer.this.drawOrderNumber(p1, p2, orderNumber, clr);
     }
-    
+
     /**
      * highlights a given GeneralPath using the settings from BasicStroke to match the line's
@@ -883,5 +883,5 @@
         }
     }
-    
+
     public void drawRestriction(Image img, Point pVia, double vx, double vx2, double vy, double vy2, double angle, boolean selected) {
         /* rotate image with direction last node in from to */
@@ -898,5 +898,5 @@
         }
     }
-    
+
     public void drawRestriction(Relation r, MapImage icon) {
         Way fromWay = null;
@@ -1073,5 +1073,5 @@
                 pVia, vx, vx2, vy, vy2, iconAngle, r.isSelected());
     }
-    
+
     public void drawTextOnPath(Way way, TextElement text) {
         if (way == null || text == null)
@@ -1110,5 +1110,5 @@
         double[] p1 = pointAt(t1, poly, pathLength);
         double[] p2 = pointAt(t2, poly, pathLength);
-        
+
         if (p1 == null || p2 == null)
             return;
@@ -1164,5 +1164,5 @@
         }
     }
-    
+
     /**
      * draw way
@@ -1304,5 +1304,5 @@
         this.backgroundColor = PaintColors.getBackgroundColor();
     }
-    
+
     @Override
     protected void getSettings(boolean virtual) {
Index: trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/WireframeMapRenderer.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/WireframeMapRenderer.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/WireframeMapRenderer.java	(revision 6069)
@@ -96,5 +96,5 @@
     /**
      * Creates an wireframe render
-     * 
+     *
      * @param g the graphics context. Must not be null.
      * @param nc the map viewport. Must not be null.
@@ -158,5 +158,5 @@
         this.ds = data;
         getSettings(virtual);
-        
+
         for (final Relation rel : data.searchRelations(bbox)) {
             if (rel.isDrawable() && !ds.isSelected(rel) && !rel.isDisabledAndHidden()) {
@@ -181,5 +181,5 @@
         }
         displaySegments();
-        
+
         // Display highlighted ways after the other ones (fix #8276)
         for (List<Way> specialWays : Arrays.asList(new List[]{untaggedWays, highlightedWays})) {
@@ -190,5 +190,5 @@
             displaySegments();
         }
-        
+
         for (final OsmPrimitive osm : data.getSelected()) {
             if (osm.isDrawable()) {
@@ -274,5 +274,5 @@
         }
     }
-    
+
     private boolean isNodeTagged(Node n) {
         return n.isTagged() || n.isAnnotated();
Index: trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/relations/Multipolygon.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/relations/Multipolygon.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/relations/Multipolygon.java	(revision 6069)
@@ -50,8 +50,8 @@
      * member role indicates that the member belongs to an <em>outer</em> or an
      * <em>inner</em> polygon.</p>
-     * 
+     *
      * <p>The decision is taken based on preference settings, see the four preference keys
      * above.</p>
-     * 
+     *
      */
     private static class MultipolygonRoleMatcher implements PreferenceChangedListener{
@@ -209,5 +209,5 @@
             buildPoly();
         }
-        
+
         private void buildPoly() {
             boolean initial = true;
@@ -238,5 +238,5 @@
             this.inners = new ArrayList<Multipolygon.PolyData>(copy.inners);
         }
-        
+
         public Intersection contains(Path2D.Double p) {
             int contains = 0;
@@ -262,5 +262,5 @@
             appendInner(inner.poly);
         }
-        
+
         private void appendInner(Path2D.Double inner) {
             poly.append(inner.getPathIterator(null), false);
@@ -277,9 +277,9 @@
             return bounds;
         }
-        
+
         public Collection<Long> getWayIds() {
             return wayIds;
         }
-        
+
         private void resetNodes(DataSet dataSet) {
             if (!nodes.isEmpty()) {
@@ -309,5 +309,5 @@
             }
         }
-        
+
         private void resetPoly() {
             poly.reset();
@@ -315,5 +315,5 @@
             bounds = null;
         }
-        
+
         public void nodeMoved(NodeMovedEvent event) {
             final Node n = event.getNode();
@@ -329,5 +329,5 @@
             }
         }
-        
+
         public void wayNodesChanged(WayNodesChangedEvent event) {
             final Long wayId = event.getChangedWay().getUniqueId();
@@ -350,5 +350,5 @@
     private final List<PolyData> outerPolygons = new ArrayList<PolyData>();
     private final List<PolyData> combinedPolygons = new ArrayList<PolyData>();
-    
+
     private boolean incomplete;
 
@@ -389,5 +389,5 @@
         }
     }
-    
+
     public final boolean isIncomplete() {
         return incomplete;
@@ -518,5 +518,5 @@
             }
         }
-        
+
         if (insideCount == 1)
             return insidePolygon;
@@ -560,5 +560,5 @@
             }
         }
-        
+
         // Clear inner and outer polygons to reduce memory footprint
         innerPolygons.clear();
Index: trunk/src/org/openstreetmap/josm/data/preferences/AbstractProperty.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/preferences/AbstractProperty.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/preferences/AbstractProperty.java	(revision 6069)
@@ -53,5 +53,5 @@
         Main.pref.put(getKey(), String.valueOf(getDefaultValue()));
     }
-    
+
     /**
      * Replies the value of this property.
@@ -60,5 +60,5 @@
      */
     public abstract T get();
-    
+
     /**
      * Sets this property to the specified value.
Index: trunk/src/org/openstreetmap/josm/data/preferences/CachedProperty.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/preferences/CachedProperty.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/preferences/CachedProperty.java	(revision 6069)
@@ -50,8 +50,8 @@
         return updateCount;
     }
-    
-    @Override 
-    public T getDefaultValue() { 
-        return fromString(getDefaultValueAsString()); 
+
+    @Override
+    public T getDefaultValue() {
+        return fromString(getDefaultValueAsString());
     }
 
Index: trunk/src/org/openstreetmap/josm/data/projection/AbstractProjection.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/projection/AbstractProjection.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/projection/AbstractProjection.java	(revision 6069)
@@ -100,5 +100,5 @@
         return degree + (minute/60.0) + (second/3600.0);
     }
-    
+
     public void dump() {
         System.err.println("x_0="+x_0);
Index: trunk/src/org/openstreetmap/josm/data/projection/Projection.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/projection/Projection.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/projection/Projection.java	(revision 6069)
@@ -50,5 +50,5 @@
      * If projection supports parameters, return a different code
      * for each set of parameters.
-     * 
+     *
      * The EPSG code can be used (if defined for the projection).
      *
Index: trunk/src/org/openstreetmap/josm/data/projection/datum/AbstractDatum.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/projection/datum/AbstractDatum.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/projection/datum/AbstractDatum.java	(revision 6069)
@@ -5,5 +5,5 @@
 
 abstract public class AbstractDatum implements Datum {
-    
+
     protected String name;
     protected String proj4Id;
Index: trunk/src/org/openstreetmap/josm/data/projection/datum/Datum.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/projection/datum/Datum.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/projection/datum/Datum.java	(revision 6069)
@@ -7,5 +7,5 @@
 /**
  * Represents a geodetic datum.
- * 
+ *
  * Basically it provides conversion functions from and to the WGS84 datum.
  */
@@ -23,5 +23,5 @@
      */
     String getProj4Id();
-    
+
     /**
      * @return the ellipsoid associated with this datum
@@ -33,5 +33,5 @@
      */
     LatLon toWGS84(LatLon ll);
-    
+
     /**
      * Convert lat/lon from WGS84 to this datum.
Index: trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFileWrapper.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFileWrapper.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFileWrapper.java	(revision 6069)
@@ -17,5 +17,5 @@
     public final static NTV2GridShiftFileWrapper BETA2007 = new NTV2GridShiftFileWrapper("resource://data/BETA2007.gsb");
     public final static NTV2GridShiftFileWrapper ntf_rgf93 = new NTV2GridShiftFileWrapper("resource://data/ntf_r93_b.gsb");
-    
+
 
     private NTV2GridShiftFile instance = null;
Index: trunk/src/org/openstreetmap/josm/data/projection/datum/SevenParameterDatum.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/projection/datum/SevenParameterDatum.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/projection/datum/SevenParameterDatum.java	(revision 6069)
@@ -7,19 +7,19 @@
 /**
  * Datum provides general conversion from one ellipsoid to another.
- * 
+ *
  * Seven parameters can be specified:
  * - 3D offset
  * - general rotation
  * - scale
- * 
+ *
  * This method is described by EPSG as EPSG::9606.
  * Also known as Bursa-Wolf.
  */
 public class SevenParameterDatum extends AbstractDatum {
-    
+
     protected double dx, dy, dz, rx, ry, rz, s;
 
     /**
-     * 
+     *
      * @param name name of the datum
      * @param proj4Id Proj.4 identifier for this datum (or null)
@@ -61,4 +61,4 @@
         return this.ellps.cart2LatLon(new double[] { x, y, z });
     }
-    
+
 }
Index: trunk/src/org/openstreetmap/josm/data/projection/datum/ThreeParameterDatum.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/projection/datum/ThreeParameterDatum.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/projection/datum/ThreeParameterDatum.java	(revision 6069)
@@ -9,5 +9,5 @@
  */
 public class ThreeParameterDatum extends AbstractDatum {
-    
+
     protected double dx, dy, dz;
 
@@ -36,4 +36,4 @@
         return this.ellps.cart2LatLon(xyz);
     }
-    
+
 }
Index: trunk/src/org/openstreetmap/josm/data/validation/Test.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/validation/Test.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/validation/Test.java	(revision 6069)
@@ -225,5 +225,5 @@
         return progressMonitor.isCanceled();
     }
-    
+
     /**
      * Build a Delete command on all primitives that have not yet been deleted manually by user, or by another error fix.
Index: trunk/src/org/openstreetmap/josm/data/validation/TestError.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/validation/TestError.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/validation/TestError.java	(revision 6069)
@@ -290,5 +290,5 @@
     public int compareTo(TestError o) {
         if (equals(o)) return 0;
-        
+
         MultipleNameVisitor v1 = new MultipleNameVisitor();
         MultipleNameVisitor v2 = new MultipleNameVisitor();
Index: trunk/src/org/openstreetmap/josm/data/validation/tests/Addresses.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/validation/tests/Addresses.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/validation/tests/Addresses.java	(revision 6069)
@@ -39,5 +39,5 @@
     protected static final int MULTIPLE_STREET_RELATIONS = 2604;
     protected static final int HOUSE_NUMBER_TOO_FAR = 2605;
-    
+
     protected static final String ADDR_HOUSE_NUMBER  = "addr:housenumber";
     protected static final String ADDR_INTERPOLATION = "addr:interpolation";
@@ -45,5 +45,5 @@
     protected static final String ADDR_STREET        = "addr:street";
     protected static final String ASSOCIATED_STREET  = "associatedStreet";
-    
+
     protected class AddressError extends TestError {
 
@@ -58,5 +58,5 @@
         }
     }
-    
+
     /**
      * Constructor
@@ -65,5 +65,5 @@
         super(tr("Addresses"), tr("Checks for errors in addresses and associatedStreet relations."));
     }
-    
+
     protected List<Relation> getAndCheckAssociatedStreets(OsmPrimitive p) {
         List<Relation> list = OsmPrimitive.getFilteredList(p.getReferrers(), Relation.class);
@@ -150,5 +150,5 @@
                 List<OsmPrimitive> list = map.get(key);
                 if (list.size() > 1) {
-                    errors.add(new AddressError(DUPLICATE_HOUSE_NUMBER, list, 
+                    errors.add(new AddressError(DUPLICATE_HOUSE_NUMBER, list,
                             tr("Duplicate house numbers"), tr(description_en, key), description_en));
                 }
@@ -156,5 +156,5 @@
             // Report wrong street names
             if (!wrongStreetNames.isEmpty()) {
-                errors.add(new AddressError(MULTIPLE_STREET_NAMES, wrongStreetNames, 
+                errors.add(new AddressError(MULTIPLE_STREET_NAMES, wrongStreetNames,
                         tr("Multiple street names in relation")));
             }
@@ -169,5 +169,5 @@
         }
     }
-    
+
     protected void checkDistance(OsmPrimitive house, Collection<Way> street) {
         EastNorth centroid;
@@ -207,5 +207,5 @@
         List<OsmPrimitive> errorList = new ArrayList<OsmPrimitive>(street);
         errorList.add(0, house);
-        errors.add(new AddressError(HOUSE_NUMBER_TOO_FAR, errorList, 
+        errors.add(new AddressError(HOUSE_NUMBER_TOO_FAR, errorList,
                 tr("House number too far from street")));
     }
Index: trunk/src/org/openstreetmap/josm/data/validation/tests/BuildingInBuilding.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/validation/tests/BuildingInBuilding.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/validation/tests/BuildingInBuilding.java	(revision 6069)
@@ -81,5 +81,5 @@
         }
     }
-    
+
     protected boolean sameLayers(Way w1, Way w2) {
         String l1 = w1.get("layer") != null ? w1.get("layer") : "0";
@@ -87,5 +87,5 @@
         return l1.equals(l2);
     }
-    
+
     protected boolean isWayInsideMultiPolygon(Way object, Relation multiPolygon) {
         // Extract outer/inner members from multipolygon
@@ -115,17 +115,17 @@
         return false;
     }
-    
+
     @Override
     public void endTest() {
         for (final OsmPrimitive p : primitivesToCheck) {
             Collection<Way> outers = new FilteredCollection<Way>(index.search(p.getBBox()), new Predicate<Way>() {
-                
+
                 protected boolean evaluateNode(Node n, Way object) {
                     return isInPolygon(n, object.getNodes()) || object.getNodes().contains(n);
                 }
-                
+
                 protected boolean evaluateWay(Way w, Way object) {
                     if (w.equals(object)) return false;
-                    
+
                     // Get all multipolygons referencing object
                     Collection<OsmPrimitive> buildingMultiPolygons = new FilteredCollection<OsmPrimitive>(object.getReferrers(), new Predicate<OsmPrimitive>() {
@@ -135,5 +135,5 @@
                         }
                     }) ;
-                    
+
                     // if there's none, test if w is inside object
                     if (buildingMultiPolygons.isEmpty()) {
@@ -153,5 +153,5 @@
                     }
                 }
-                
+
                 protected boolean evaluateRelation(Relation r, Way object) {
                     MultiPolygonMembers mpm = new MultiPolygonMembers((Relation) p);
@@ -163,5 +163,5 @@
                     return false;
                 }
-                
+
                 @Override
                 public boolean evaluate(Way object) {
@@ -177,5 +177,5 @@
                 }
             });
-            
+
             if (!outers.isEmpty()) {
                 errors.add(new TestError(this, Severity.WARNING,
Index: trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateNode.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateNode.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateNode.java	(revision 6069)
@@ -145,5 +145,5 @@
                 continue;
             }
-            
+
             // report errors
             errors.addAll(buildTestErrors(this, nodes));
@@ -401,5 +401,5 @@
                 target = nodes.iterator().next();
             }
-    
+
             if (DeleteCommand.checkAndConfirmOutlyingDelete(Main.main.getCurrentDataSet().getDataSourceArea(), nodes, Collections.singleton(target)))
                 return MergeNodesAction.mergeNodes(Main.main.getEditLayer(), nodes, target);
Index: trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateWay.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateWay.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateWay.java	(revision 6069)
@@ -92,5 +92,5 @@
     /** Bag of all ways, regardless of tags */
     private MultiMap<WayPairNoTags, OsmPrimitive> waysNoTags;
-    
+
     /** Set of known hashcodes for list of coordinates **/
     private Set<Integer> knownHashCodes;
Index: trunk/src/org/openstreetmap/josm/data/validation/tests/MultipolygonTest.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/validation/tests/MultipolygonTest.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/validation/tests/MultipolygonTest.java	(revision 6069)
@@ -252,8 +252,8 @@
         }
     }
-    
+
     private void addRelationIfNeeded(TestError error, Relation r) {
-        // Fix #8212 : if the error references only incomplete primitives, 
-        // add multipolygon in order to let user select something and fix the error 
+        // Fix #8212 : if the error references only incomplete primitives,
+        // add multipolygon in order to let user select something and fix the error
         Collection<? extends OsmPrimitive> primitives = error.getPrimitives();
         if (!primitives.contains(r)) {
@@ -268,5 +268,5 @@
         }
     }
-    
+
     private void addError(Relation r, TestError error) {
         addRelationIfNeeded(error, r);
Index: trunk/src/org/openstreetmap/josm/data/validation/tests/NodesDuplicatingWayTags.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/validation/tests/NodesDuplicatingWayTags.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/validation/tests/NodesDuplicatingWayTags.java	(revision 6069)
@@ -20,5 +20,5 @@
  * <p>
  * See JOSM ticket #7639 for the original request.
- * 
+ *
  * @author Mrwojo
  */
Index: trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java	(revision 6069)
@@ -419,7 +419,7 @@
             if (checkValues && value != null && value.length() > 0 && presetsValueData != null) {
                 final Set<String> values = presetsValueData.get(key);
-                final boolean keyInPresets = values != null;  
+                final boolean keyInPresets = values != null;
                 final boolean tagInPresets = values != null && (values.isEmpty() || values.contains(prop.getValue()));
-                
+
                 boolean ignore = false;
                 for (String a : ignoreDataStartsWith) {
@@ -438,5 +438,5 @@
                     }
                 }
-                
+
                 if (!tagInPresets) {
                     for (IgnoreKeyPair a : ignoreDataKeyPair) {
@@ -446,5 +446,5 @@
                     }
                 }
-                
+
                 if (!ignore) {
                     if (!keyInPresets) {
Index: trunk/src/org/openstreetmap/josm/data/validation/tests/TurnrestrictionTest.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/validation/tests/TurnrestrictionTest.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/validation/tests/TurnrestrictionTest.java	(revision 6069)
@@ -157,5 +157,5 @@
                     Way previous = (Way) via.get(i - 1);
                     Way current = (Way) via.get(i);
-                    checkIfConnected(previous, current, 
+                    checkIfConnected(previous, current,
                             tr("The \"via\" ways are not connected."), UNCONNECTED_VIA);
                 }
@@ -165,5 +165,5 @@
                 return;
             }
-            checkIfConnected((Way) via.get(via.size() - 1), toWay, 
+            checkIfConnected((Way) via.get(via.size() - 1), toWay,
                     tr("The last \"via\" and the \"to\" way are not connected."), TO_VIA_WAY);
 
Index: trunk/src/org/openstreetmap/josm/data/validation/tests/UntaggedWay.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/validation/tests/UntaggedWay.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/validation/tests/UntaggedWay.java	(revision 6069)
@@ -52,5 +52,5 @@
         NAMED_WAYS.add( "pedestrian" ); ;
     }
-    
+
     /** Whitelist of roles allowed to reference an untagged way */
     public static final Set<String> WHITELIST = new HashSet<String>();
Index: trunk/src/org/openstreetmap/josm/data/validation/util/MultipleNameVisitor.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/validation/util/MultipleNameVisitor.java	(revision 6068)
+++ trunk/src/org/openstreetmap/josm/data/validation/util/MultipleNameVisitor.java	(revision 6069)
@@ -20,5 +20,5 @@
 {
     public static final int MULTIPLE_NAME_MAX_LENGTH = 80;
-    
+
     /** The class name of the combined primitives */
     private String multipleClassname;
