Ignore:
Timestamp:
2009-01-01T18:28:53+01:00 (16 years ago)
Author:
stoecker
Message:

removed tab stop usage

Location:
applications/editors/josm/plugins/openvisible/src/at/dallermassl/josm/plugin/openvisible
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/openvisible/src/at/dallermassl/josm/plugin/openvisible/OpenVisibleAction.java

    r12588 r12778  
    11/**
    2  * 
     2 *
    33 */
    44package at.dallermassl.josm.plugin.openvisible;
     
    4040public class OpenVisibleAction extends JosmAction {
    4141    private File lastDirectory;
    42    
     42
    4343    public OpenVisibleAction() {
    4444        super(tr("Open Visible ..."), "openvisible",
     
    6060        LatLon bottomLeft = view.getLatLon(bounds.x, bounds.y + bounds.height);
    6161        LatLon topRight = view.getLatLon(bounds.x + bounds.width, bounds.y);
    62        
     62
    6363        System.err.println("FileFind Bounds: " + bottomLeft + " to " + topRight);
    64        
     64
    6565        JFileChooser fileChooser;
    6666        if(lastDirectory != null) {
     
    7373        File[] files = fileChooser.getSelectedFiles();
    7474        lastDirectory = fileChooser.getCurrentDirectory();
    75        
     75
    7676        for(File file : files) {
    7777            try {
     
    8585                        openFileAsGpx(file);
    8686                    }
    87                    
     87
    8888                }
    8989            } catch (FileNotFoundException e1) {
     
    9595            }
    9696        }
    97        
     97
    9898    }
    99    
     99
    100100    private void openAsData(File file) throws SAXException, IOException, FileNotFoundException {
    101101        String fn = file.getName();
  • applications/editors/josm/plugins/openvisible/src/at/dallermassl/josm/plugin/openvisible/OpenVisiblePlugin.java

    r12588 r12778  
    11/**
    2  * 
     2 *
    33 */
    44package at.dallermassl.josm.plugin.openvisible;
  • applications/editors/josm/plugins/openvisible/src/at/dallermassl/josm/plugin/openvisible/OsmGpxBounds.java

    r5138 r12778  
    11/**
    2  * 
     2 *
    33 */
    44package at.dallermassl.josm.plugin.openvisible;
     
    2727    private double minLon = 90.0;
    2828    private double maxLon = -90.0;
    29    
     29
    3030    public OsmGpxBounds() {
    31        
     31
    3232    }
    33    
     33
    3434    /**
    3535     * Parses the given input stream (gpx or osm file).
     
    4646        }
    4747    }
    48    
    49     @Override 
     48
     49    @Override
    5050    public void startElement(String ns, String lname, String qname, Attributes a) {
    5151        if (qname.equals("node") || qname.equals("trkpt")) {
     
    5858        }
    5959    }
    60    
     60
    6161    /**
    6262     * Returns <code>true</code>, if the given coordinates intersect with the
     
    7575        return ((lat2-lat1) > 0) && ((lon2-lon1) > 0);
    7676    }
    77        
     77
    7878    public static void main(String[] args) {
    7979        if(args.length < 5) {
     
    8787        String[] files = new String[args.length - 4];
    8888        System.arraycopy(args, 4, files, 0, args.length - 4);
    89            
    90         try {   
     89
     90        try {
    9191            File file;
    9292            for(String fileName : files) {
    9393                file = new File(fileName);
    94                 if(!file.isDirectory() 
     94                if(!file.isDirectory()
    9595                  && (file.getName().endsWith("gpx") || file.getName().endsWith("osm"))) {
    9696                    OsmGpxBounds parser = new OsmGpxBounds();
    9797                    parser.parse(new BufferedInputStream(new FileInputStream(file)));
    9898                    if(parser.intersects(minLat, maxLat, minLon, maxLon)) {
    99                         System.out.println(file.getAbsolutePath()); // + "," + parser.minLat + "," + parser.maxLat + "," + parser.minLon + "," + parser.maxLon);                       
     99                        System.out.println(file.getAbsolutePath()); // + "," + parser.minLat + "," + parser.maxLat + "," + parser.minLon + "," + parser.maxLon);
    100100                    }
    101101//                    System.out.println(parser.intersects(47.0555, 47.09, 15.406, 15.4737));
     
    112112
    113113    /**
    114      * 
     114     *
    115115     */
    116116    private static void printHelp() {
    117117        System.out.println(OsmGpxBounds.class.getName() + " <minLat> <maxLat> <minLon> <maxLon> <files+>");
    118        
     118
    119119    }
    120120
Note: See TracChangeset for help on using the changeset viewer.