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

removed tab stop usage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/action/SetWaypointAction.java

    r9400 r12778  
    3131 * Action that sets a marker into a marker layer. The first parameter of the action
    3232 * is used as the text of the marker, the second (if it exists) as an icon.
    33  * 
     33 *
    3434 * @author cdaller
    3535 *
     
    4040    public static final String MARKER_LAYER_NAME = "surveyorwaypointlayer";
    4141    private WaypointDialog dialog;
    42    
     42
    4343    /**
    4444     * Default Constructor.
    4545     */
    4646    public SetWaypointAction() {
    47        
     47
    4848    }
    4949
     
    6161                markerTitle = markerTitle + " " + tr("start");
    6262            } else {
    63                 markerTitle = markerTitle + " " + tr("end");               
     63                markerTitle = markerTitle + " " + tr("end");
    6464            }
    6565        }
    66        
     66
    6767        if(dialog == null) {
    6868            dialog = new WaypointDialog();
    6969        }
    70        
     70
    7171        String markerText = markerTitle;
    7272        String inputText = dialog.openDialog(SurveyorPlugin.getSurveyorFrame(), "Waypoint Description");
     
    7575            markerText = markerText + " " + inputText;
    7676        }
    77        
     77
    7878        String iconName = getParameters().size() > 1 ? getParameters().get(1) : null;
    79        
    80         // add the waypoint to the marker layer AND to the gpx layer 
     79
     80        // add the waypoint to the marker layer AND to the gpx layer
    8181        // (easy export of data + waypoints):
    8282        MarkerLayer layer = getMarkerLayer();
     
    8787        synchronized(LiveGpsLock.class) {
    8888            //layer.data.add(new Marker(event.getCoordinates(), markerText, iconName));
    89             layer.data.add(new Marker(event.getCoordinates(), markerText, iconName, null, -1.0, 0.0));
     89        layer.data.add(new Marker(event.getCoordinates(), markerText, iconName, null, -1.0, 0.0));
    9090            if(gpsLayer != null) {
    9191                gpsLayer.data.waypoints.add(waypoint);
    9292            }
    9393        }
    94        
     94
    9595        Main.map.repaint();
    9696    }
    97    
     97
    9898    /**
    9999     * Returns the marker layer with the name {@link #MARKER_LAYER_NAME}.
     
    103103        if(markerLayer == null) {
    104104            markerLayer = LayerUtil.findGpsLayer(MARKER_LAYER_NAME, MarkerLayer.class);
    105            
     105
    106106            if(markerLayer == null) {
    107107                // not found, add a new one
    108108                //markerLayer = new MarkerLayer(new GpxData(), MARKER_LAYER_NAME, null);
    109                 markerLayer = new MarkerLayer(new GpxData(), MARKER_LAYER_NAME, null, null);
     109        markerLayer = new MarkerLayer(new GpxData(), MARKER_LAYER_NAME, null, null);
    110110                Main.main.addLayer(markerLayer);
    111111            }
     
    113113        return markerLayer;
    114114    }
    115    
     115
    116116    /**
    117117     * Returns the gpx layer that is filled by the live gps data.
     
    126126                    break;
    127127                }
    128             } 
     128            }
    129129        }
    130130        return liveGpsLayer;
Note: See TracChangeset for help on using the changeset viewer.