Ignore:
Timestamp:
2009-06-17T10:04:22+02:00 (16 years ago)
Author:
stoecker
Message:

remove all these ugly tab stops introduced in the last half year

Location:
trunk/src/org/openstreetmap/josm/io
Files:
5 edited

Legend:

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

    r1612 r1677  
    4646        out.println("<?xml version='1.0' encoding='UTF-8'?>");
    4747        out.println("<gpx version=\"1.1\" creator=\"JOSM GPX export\" xmlns=\"http://www.topografix.com/GPX/1/1\"\n" +
    48                         "    xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \n" +
    49                         "    xsi:schemaLocation=\"http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd\">");
     48                "    xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \n" +
     49                "    xsi:schemaLocation=\"http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd\">");
    5050        indent = "  ";
    5151        writeMetaData();
     
    6060        // FIXME this loop is evil, because it does not assure the
    6161        // correct element order specified by the xml schema.
    62         // for now it works, but future extension could get very complex and unmaintainable 
     62        // for now it works, but future extension could get very complex and unmaintainable
    6363        for (Map.Entry<String, Object> ent : attr.entrySet()) {
    6464            String k = ent.getKey();
     
    7676        Map<String, Object> attr = data.attr;
    7777        openln("metadata");
    78        
     78
    7979        // write the description
    8080        if (attr.containsKey(GpxData.META_DESC)) simpleTag("desc", (String)attr.get(GpxData.META_DESC));
    81        
     81
    8282        // write the author details
    83         if (attr.containsKey(GpxData.META_AUTHOR_NAME) 
     83        if (attr.containsKey(GpxData.META_AUTHOR_NAME)
    8484                || attr.containsKey(GpxData.META_AUTHOR_EMAIL)) {
    8585            openln("author");
     
    9999
    100100        // write the copyright details
    101         if(attr.containsKey(GpxData.META_COPYRIGHT_LICENSE) 
     101        if(attr.containsKey(GpxData.META_COPYRIGHT_LICENSE)
    102102                || attr.containsKey(GpxData.META_COPYRIGHT_YEAR)) {
    103103            openAtt("copyright", "author=\""+ attr.get(GpxData.META_COPYRIGHT_AUTHOR) +"\"");
     
    110110            closeln("copyright");
    111111        }
    112        
     112
    113113        // write links
    114114        if(attr.containsKey(GpxData.META_LINKS)) {
     
    117117            }
    118118        }
    119        
    120         // write keywords 
     119
     120        // write keywords
    121121        if (attr.containsKey(GpxData.META_KEYWORDS)) simpleTag("keywords", (String)attr.get(GpxData.META_KEYWORDS));
    122122
  • trunk/src/org/openstreetmap/josm/io/OsmApi.java

    r1670 r1677  
    5555    /**
    5656     * replies the {@see OsmApi} for a given server URL
    57      * 
     57     *
    5858     * @param serverUrl  the server URL
    5959     * @return the OsmApi
    6060     * @throws IllegalArgumentException thrown, if serverUrl is null
    61      * 
     61     *
    6262     */
    6363    static public OsmApi getOsmApi(String serverUrl) {
     
    7171    /**
    7272     * replies the {@see OsmApi} for the URL given by the preference <code>osm-server.url</code>
    73      * 
     73     *
    7474     * @return the OsmApi
    7575     * @exception IllegalStateException thrown, if the preference <code>osm-server.url</code> is not set
    76      * 
     76     *
    7777     */
    7878    static public OsmApi getOsmApi() {
     
    125125    /**
    126126     * creates an OSM api for a specific server URL
    127      * 
     127     *
    128128     * @param serverUrl the server URL. Must not be null
    129129     * @exception IllegalArgumentException thrown, if serverUrl is null
     
    466466     * notifies any listeners about the current state of this API. Currently just
    467467     * displays the message in the global progress dialog, see {@see Main#pleaseWaitDlg}
    468      * 
     468     *
    469469     * @param message a status message.
    470470     */
     
    476476     * notifies any listeners about the current about a relative progress. Currently just
    477477     * increments the progress monitor in the in the global progress dialog, see {@see Main#pleaseWaitDlg}
    478      * 
     478     *
    479479     * @param int the delta
    480480     */
  • trunk/src/org/openstreetmap/josm/io/OsmReader.java

    r1604 r1677  
    158158                              throw new SAXException(tr("Unknown version"));
    159159                         String v = atts.getValue("version");
    160                          if (v == null) 
     160                         if (v == null)
    161161                             throw new SAXException(tr("Version number missing from OSM data"));
    162                          if (!(v.equals("0.5") || v.equals("0.6"))) 
     162                         if (!(v.equals("0.5") || v.equals("0.6")))
    163163                             throw new SAXException(tr("Unknown version: {0}", v));
    164164                         // save generator attribute for later use when creating DataSource objects
    165165                         generator = atts.getValue("generator");
    166166                         ds.version = v;
    167                          
     167
    168168                    } else if (qName.equals("bounds")) {
    169169                         // new style bounds.
     
    234234                         value = atts.getValue("role");
    235235                         emd.relationMember.role = value;
    236                          
     236
    237237                         if (emd.id == 0)
    238238                              throw new SAXException(tr("Incomplete <member> specification with ref=0"));
     
    285285               current.user = User.get(user);
    286286          }
    287          
    288           // uid attribute added in 0.6 API 
     287
     288          // uid attribute added in 0.6 API
    289289          String uid = atts.getValue("uid");
    290290          if (uid != null) {
     
    484484
    485485          Main.pleaseWaitDlg.currentAction.setText(tr("Prepare OSM data..."));
    486           Main.pleaseWaitDlg.setIndeterminate(true); 
     486          Main.pleaseWaitDlg.setIndeterminate(true);
    487487
    488488//          System.out.println("Parser finished: Tags " + tagsN + " Nodes " + nodesN + " Ways " + waysN +
     
    506506
    507507//          System.out.println("Data loaded!");
    508           Main.pleaseWaitDlg.setIndeterminate(false); 
    509           Main.pleaseWaitDlg.progress.setValue(0); 
     508          Main.pleaseWaitDlg.setIndeterminate(false);
     509          Main.pleaseWaitDlg.progress.setValue(0);
    510510
    511511          return osm;
  • trunk/src/org/openstreetmap/josm/io/OsmServerWriter.java

    r1670 r1677  
    6262    /**
    6363     * retrieves the most recent changeset comment from the preferences
    64      * 
     64     *
    6565     * @return the most recent changeset comment
    6666     */
     
    7777    /**
    7878     * Send the dataset to the server.
    79      * 
     79     *
    8080     * @param apiVersion version of the data set
    8181     * @param primitives list of objects to send
  • trunk/src/org/openstreetmap/josm/io/XmlWriter.java

    r1523 r1677  
    1313
    1414    protected PrintWriter out;
    15    
     15
    1616    public XmlWriter(PrintWriter out) {
    1717        this.out = out;
    1818    }
    19    
     19
    2020    /**
    2121     * Encode the given string in XML1.0 format.
Note: See TracChangeset for help on using the changeset viewer.