Ignore:
Timestamp:
2013-07-17T00:01:49+02:00 (11 years ago)
Author:
stoecker
Message:

see #8853 remove tabs, trailing spaces, windows line ends, strange characters

Location:
trunk/src/org/openstreetmap/josm/gui/io
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/ActionFlagsTableCell.java

    r5302 r6070  
    2828 * handles everything on its own, in other words it renders itself and also functions
    2929 * as editor so the checkboxes may be set by the user.
    30  * 
     30 *
    3131 * Intended usage is like this:
    3232 * ActionFlagsTableCell aftc = new ActionFlagsTableCell();
  • trunk/src/org/openstreetmap/josm/gui/io/ChangesetCommentModel.java

    r5266 r6070  
    1515     * Sets the current changeset comment and notifies observers if the comment
    1616     * has changed.
    17      * 
     17     *
    1818     * @param comment the new upload comment. Empty string assumed if null.
    1919     */
     
    2929    /**
    3030     * Replies the current changeset comment in this model.
    31      * 
     31     *
    3232     * @return the current changeset comment in this model.
    3333     */
  • trunk/src/org/openstreetmap/josm/gui/io/DownloadFileTask.java

    r5874 r6070  
    4949        this.mkdir = mkdir;
    5050        this.unpack = unpack;
    51     }   
    52    
     51    }
     52
    5353    private static class DownloadException extends Exception {
    5454        public DownloadException(String msg) {
     
    6868
    6969
    70     @Override 
     70    @Override
    7171    protected void cancel() {
    7272        this.canceled = true;
     
    7474    }
    7575
    76     @Override 
     76    @Override
    7777    protected void finish() {}
    7878
     
    9191                }
    9292            }
    93            
     93
    9494            URL url = new URL(address);
    9595            int size;
     
    100100                size = downloadConnection.getContentLength();
    101101            }
    102            
     102
    103103            progressMonitor.setTicksCount(100);
    104104            progressMonitor.subTask(tr("Downloading File {0}: {1} bytes...", file.getName(),size));
    105            
     105
    106106            in = downloadConnection.getInputStream();
    107107            out = new FileOutputStream(file);
     
    112112                out.write(buffer, 0, read);
    113113                count+=read;
    114                 if (canceled) break;                           
     114                if (canceled) break;
    115115                p2 = 100 * count / size;
    116116                if (p2!=p1) {
     
    142142    }
    143143
    144     @Override 
     144    @Override
    145145    protected void realRun() throws SAXException, IOException {
    146146        if (canceled) return;
     
    160160        return canceled;
    161161    }
    162    
     162
    163163    /**
    164164     * Recursive unzipping function
     
    166166     * @param file
    167167     * @param dir
    168      * @throws IOException 
     168     * @throws IOException
    169169     */
    170170    public static void unzipFileRecursively(File file, String dir) throws IOException {
  • trunk/src/org/openstreetmap/josm/gui/io/DownloadPrimitivesTask.java

    r5791 r6070  
    9595            if (osm == null) {
    9696                switch (id.getType()) {
    97                     case NODE: 
     97                    case NODE:
    9898                        osm = new Node(id.getUniqueId());
    9999                        break;
     
    128128            DataSetMerger merger = new DataSetMerger(ds, theirDataSet);
    129129            merger.merge();
    130            
     130
    131131            // if incomplete relation members exist, download them too
    132132            for (Relation r : ds.getRelations()) {
     
    165165                }
    166166            }
    167            
     167
    168168        } catch(Exception e) {
    169169            if (canceled) return;
     
    171171        }
    172172    }
    173    
     173
    174174    /**
    175175     * replies the set of ids of all primitives for which a fetch request to the
  • trunk/src/org/openstreetmap/josm/gui/io/RecentlyOpenedFilesMenu.java

    r5729 r6070  
    4949        });
    5050    }
    51    
     51
    5252    private void rebuild() {
    5353        removeAll();
  • trunk/src/org/openstreetmap/josm/gui/io/UploadDialog.java

    r5998 r6070  
    5656 * This is a dialog for entering upload options like the parameters for
    5757 * the upload changeset and the strategy for opening/closing a changeset.
    58  * 
     58 *
    5959 */
    6060public class UploadDialog extends JDialog implements PropertyChangeListener, PreferenceChangedListener{
     
    111111        //
    112112        pnl.add(pnlUploadedObjects = new UploadedObjectsSummaryPanel(), GBC.eol().fill(GBC.BOTH));
    113        
     113
    114114        // Custom components
    115115        for (Component c : customComponents) {
     
    309309    public void setDefaultChangesetTags(Map<String, String> tags) {
    310310        pnlTagSettings.setDefaultTags(tags);
    311          for (String key: tags.keySet()) { 
    312             if (key.equals("comment")) { 
     311         for (String key: tags.keySet()) {
     312            if (key.equals("comment")) {
    313313                changesetCommentModel.setComment(tags.get(key));
    314             } 
    315         } 
     314            }
     315        }
    316316    }
    317317
     
    370370        super.setVisible(visible);
    371371    }
    372    
    373     /**
    374      * Adds a custom component to this dialog. 
     372
     373    /**
     374     * Adds a custom component to this dialog.
    375375     * Custom components added at JOSM startup are displayed between the objects list and the properties tab pane.
    376376     * @param c The custom component to add. If {@code null}, this method does nothing.
  • trunk/src/org/openstreetmap/josm/gui/io/UploadSelectionDialog.java

    r5998 r6070  
    264264            putValue(Action.NAME, tr("Cancel"));
    265265            putValue(Action.SMALL_ICON, ImageProvider.get("", "cancel"));
    266             getRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW) 
    267             .put(KeyStroke.getKeyStroke("ESCAPE"), "ESCAPE"); 
     266            getRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW)
     267            .put(KeyStroke.getKeyStroke("ESCAPE"), "ESCAPE");
    268268            getRootPane().getActionMap().put("ESCAPE", this);
    269269            setEnabled(true);
Note: See TracChangeset for help on using the changeset viewer.